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. |
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.