Public Member Functions | |
b2JointType | GetType () const |
Get the type of the concrete joint. | |
b2Body * | GetBody1 () |
Get the first body attached to this joint. | |
b2Body * | GetBody2 () |
Get the second body attached to this joint. | |
virtual b2Vec2 | GetAnchor1 () const =0 |
Get the anchor point on body1 in world coordinates. | |
virtual b2Vec2 | GetAnchor2 () const =0 |
Get the anchor point on body2 in world coordinates. | |
virtual b2Vec2 | GetReactionForce () const =0 |
Get the reaction force on body2 at the joint anchor. | |
virtual float32 | GetReactionTorque () const =0 |
Get the reaction torque on body2. | |
b2Joint * | GetNext () |
Get the next joint the world joint list. | |
void * | GetUserData () |
Get the user data pointer. |
Joints are used to constraint two bodies together in various fashions. Some joints also feature limits and motors.