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.
Get the anchor point on bodyA in world coordinates.
Body A anchor.
Get the anchor point on bodyB in world coordinates.
Body B anchor.
Get the first body attached to this joint.
Body A.
Get the second body attached to this joint.
Body B.
Get the first ground anchor.
Get the second ground anchor.
Get the current length of the segment attached to body1.
number
Get the current length of the segment attached to body2.
number
Get the next joint the world joint list.
Next joint.
Get the pulley ratio.
number
Get the reaction force on body2 at the joint anchor in N.
Reaction force in N.
Get the reaction torque on body 2 in N.
number
Reaction torque in N.
Get the type of the concrete joint.
number
Joint type.
Get the user data pointer.
any
User data. Cast to your data type.
Short-cut function to determine if either body is inactive.
boolean
True if active, otherwise false.
Set the user data pointer.
Your custom data.