Difference between revisions of "B2.RopeJoint"

From GiderosMobile
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2011.6<br/> === Description === <br /> A rope joint enforces a maximum distance between two points on...")
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Supported platforms:''' <br/>
+
'''Supported platforms:''' android, ios, mac, pc<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
=== Description ===
 
=== Description ===
Line 9: Line 9:
 
See `b2.DistanceJoint` if you want to dynamically control length. <br />
 
See `b2.DistanceJoint` if you want to dynamically control length. <br />
 
<br />
 
<br />
 +
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 
{|-
 
{|-
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Methods ===
 
=== Methods ===
 +
[[b2.RopeJoint:getMaxLength]] - <br/>
 +
[[b2.RopeJoint:setMaxLength]] - <br/>
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
 
|}
 
|}

Revision as of 09:58, 23 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