Difference between revisions of "B2.RopeJoint"

From GiderosMobile
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 
'''<translate>Inherits from</translate>:''' [[Special:MyLanguage/b2.Joint|b2.Joint]]<br/>
 
'''<translate>Inherits from</translate>:''' [[Special:MyLanguage/b2.Joint|b2.Joint]]<br/>
 +
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
<translate><br />
+
A rope joint enforces a maximum distance between two points on two bodies. It has no other effect.
A rope joint enforces a maximum distance between two points on two bodies. It has no other effect.<br />
+
 
Warning: if you attempt to change the maximum length during the simulation you will get some non-physical behavior.<br />
+
'''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.<br />
+
 
See [[Special:MyLanguage/b2.DistanceJoint|b2.DistanceJoint]] if you want to dynamically control length. <br />
+
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 [[Special:MyLanguage/b2.DistanceJoint|b2.DistanceJoint]] if you want to dynamically control length.
<br /></translate>
+
 
 
{|-
 
{|-
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
Line 17: Line 18:
 
[[Special:MyLanguage/b2.RopeJoint:getMaxLength|b2.RopeJoint:getMaxLength]] <br/><!-- GIDEROSMTD:b2.RopeJoint:getMaxLength()  -->
 
[[Special:MyLanguage/b2.RopeJoint:getMaxLength|b2.RopeJoint:getMaxLength]] <br/><!-- GIDEROSMTD:b2.RopeJoint:getMaxLength()  -->
 
[[Special:MyLanguage/b2.RopeJoint:setMaxLength|b2.RopeJoint:setMaxLength]] <br/><!-- GIDEROSMTD:b2.RopeJoint:setMaxLength(maxLength)  -->
 
[[Special:MyLanguage/b2.RopeJoint:setMaxLength|b2.RopeJoint:setMaxLength]] <br/><!-- GIDEROSMTD:b2.RopeJoint:setMaxLength(maxLength)  -->
 +
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== <translate>Events</translate> ===
 
=== <translate>Events</translate> ===
 
=== <translate>Constants</translate> ===
 
=== <translate>Constants</translate> ===
 
|}
 
|}
 +
 +
----
 +
*'''[[B2.Joint]]'''
 +
*'''[[LiquidFun]]'''

Latest revision as of 15:11, 18 February 2020


Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
Available since: Gideros 2011.6
Inherits from: b2.Joint

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