Box2D: b2Joint Class Reference

Box2D

b2Joint Class Reference

The base joint class. More...

Inheritance diagram for b2Joint:

b2DistanceJoint b2GearJoint b2MouseJoint b2PrismaticJoint b2PulleyJoint b2RevoluteJoint

List of all members.

Public Member Functions

b2JointType GetType () const
 Get the type of the concrete joint.
b2BodyGetBody1 ()
 Get the first body attached to this joint.
b2BodyGetBody2 ()
 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.
b2JointGetNext ()
 Get the next joint the world joint list.
void * GetUserData ()
 Get the user data pointer.
void SetUserData (void *data)
 Set the user data pointer.

Friends

class b2World
class b2Body

Detailed Description

The base joint class.

Joints are used to constraint two bodies together in various fashions. Some joints also feature limits and motors.


The documentation for this class was generated from the following files:
  • b2Joint.h
  • b2Joint.cpp

Generated on Sun Apr 13 15:21:27 2008 for Box2D by  doxygen 1.5.4