Box2D: b2DistanceJoint Class Reference

Box2D

b2DistanceJoint Class Reference

A distance joint constrains two points on two bodies to remain at a fixed distance from each other. More...

Inheritance diagram for b2DistanceJoint:

b2Joint

List of all members.

Public Member Functions

b2Vec2 GetAnchor1 () const
 Get the anchor point on body1 in world coordinates.
b2Vec2 GetAnchor2 () const
 Get the anchor point on body2 in world coordinates.
b2Vec2 GetReactionForce () const
 Get the reaction force on body2 at the joint anchor.
float32 GetReactionTorque () const
 Get the reaction torque on body2.

Detailed Description

A distance joint constrains two points on two bodies to remain at a fixed distance from each other.

You can view this as a massless, rigid rod.


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

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