B2.RopeJoint: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 2: Line 2:
'''Supported platforms:''' android, ios, mac, pc<br/>
'''Supported platforms:''' android, ios, mac, pc<br/>
'''Available since:''' Gideros 2011.6<br/>
'''Available since:''' Gideros 2011.6<br/>
=== Description ===
=== <translate>Description</translate> ===
<translate><br />
<translate><br />
A rope joint enforces a maximum distance between two points on two bodies. It has no other effect.<br />
A rope joint enforces a maximum distance between two points on two bodies. It has no other effect.<br />
Line 11: Line 11:
{|-
{|-
| style="width: 50%; vertical-align:top;"|
| style="width: 50%; vertical-align:top;"|
=== Methods ===
=== <translate>Methods</translate> ===
[[Special:MyLanguage/b2.RopeJoint:getMaxLength|b2.RopeJoint:getMaxLength]] <br/>
[[Special:MyLanguage/b2.RopeJoint:getMaxLength|b2.RopeJoint:getMaxLength]] <br/>
[[Special:MyLanguage/b2.RopeJoint:setMaxLength|b2.RopeJoint:setMaxLength]] <br/>
[[Special:MyLanguage/b2.RopeJoint:setMaxLength|b2.RopeJoint:setMaxLength]] <br/>
| style="width: 50%; vertical-align:top;"|
| style="width: 50%; vertical-align:top;"|
=== Events ===
=== <translate>Events</translate> ===
=== Constants ===
=== <translate>Constants</translate> ===
|}
|}

Revision as of 06:28, 24 August 2018

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

Description


A rope joint enforces a maximum distance between two points on two bodies. It has no other effect.
Warning: if you attempt to change the maximum length during the simulation you will get some non-physical behavior.
A model that would allow you to dynamically modify the length would have some sponginess, so I chose not to implement it that way.
See b2.DistanceJoint if you want to dynamically control length.

Methods

b2.RopeJoint:getMaxLength
b2.RopeJoint:setMaxLength

Events

Constants