Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Joint

Abstract base class of all joints types. More...

Import Statement: import Felgo 4.0
Inherits:

QtObject

Inherited By:

DistanceJoint, FrictionJoint, GearJoint, MotorJoint, MouseJoint, PrismaticJoint, PulleyJoint, RevoluteJoint, RopeJoint, WeldJoint, and WheelJoint

Properties

Detailed Description

The Joint is not usable by itself, but the base class of all derived joint types. These are MouseJoint, DistanceJoint, RevoluteJoint and PrismaticJoint.

For all joints to work properly, bodyA and bodyB property needs to be set. An exception is the MouseJoint, which does not require any of them to be set.

The collideConnected property can be set to enable collision handling of the two connected bodies.

For a comprehensive documentation of all joints see the Box2D documentation at http://www.box2d.org/manual.html#_Toc258082974.

This page has a nice Box2D demo on the top of the page, where you can try different joint types directly in the browser: http://blog.allanbishop.com/box2d-2-1a-tutorial-part-2-joints/

Property Documentation

bodyA : Body

The first attached body. Is required for all joints to be set except for MouseJoint.


bodyB : Body

The second attached body. Is required for all joints to be set except for MouseJoint.


collideConnected : bool

Set this to true to enable collision handling and response between the two connected bodies of this joint. By default, it is set to false.


jointType : JointType

The concrete type of this joint, one of the

     UnknownJoint,
     RevoluteJoint,
     PrismaticJoint,
     DistanceJoint,
     PulleyJoint,
     MouseJoint,
     GearJoint,
     WheelJoint,
     WeldJoint,
     FrictionJoint,
     RopeJoint,
     MotorJoint
 }

constants.


Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded