B2.PulleyJoint

From GiderosMobile
Revision as of 09:57, 23 August 2018 by Hgy29 (talk | contribs)

Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6

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.






Methods

b2.PulleyJoint:getGroundAnchorA - returns the x and y coordinates of the first ground anchor
b2.PulleyJoint:getGroundAnchorB - returns the x and y coordinates of the second ground anchor
b2.PulleyJoint:getLengthA - returns the current length of the segment attached to bodyA
b2.PulleyJoint:getLengthB - returns the current length of the segment attached to bodyB
b2.PulleyJoint:getRatio - returns the joint ratio

Events

Constants