B2.PulleyJoint: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 5: Line 5:
<br />
<br />
The pulley joint is connected to two bodies and two fixed ground points. The pulley supports a ratio such that: length1  ratio * length2 &lt;= 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. <br />
The pulley joint is connected to two bodies and two fixed ground points. The pulley supports a ratio such that: length1  ratio * length2 &lt;= 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. <br />
<br />
<br />{|-
 
 
 
 
 
 
 
 
 
 
 
{|-
| style="width: 50%;"|
| style="width: 50%;"|
=== Methods ===
=== Methods ===

Revision as of 08:12, 23 August 2018

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.

{|- | style="width: 50%;"|

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
| style="width: 50%;"|

Events

Constants

|}