Box2D: b2PulleyJoint Class Reference

Box2D

b2PulleyJoint Class Reference

The pulley joint is connected to two bodies and two fixed ground points. More...

Inheritance diagram for b2PulleyJoint:

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.
b2Vec2 GetGroundAnchor1 () const
 Get the first ground anchor.
b2Vec2 GetGroundAnchor2 () const
 Get the second ground anchor.
float32 GetLength1 () const
 Get the current length of the segment attached to body1.
float32 GetLength2 () const
 Get the current length of the segment attached to body2.
float32 GetRatio () const
 Get the pulley ratio.

Detailed Description

The pulley joint is connected to two bodies and two fixed ground points.

The pulley supports a ratio such that: length1 + ratio * length2 <= constant Yes, the force transmitted is scaled by the ratio. The pulley also enforces a maximum length limit on both sides. This is useful to prevent one side of the pulley hitting the top.


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

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