B2.RopeJoint: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Supported platforms:''' android, ios, mac, pc<br/>
<languages />
'''Available since:''' Gideros 2011.6<br/>
<!-- GIDEROSOBJ:b2.RopeJoint -->
=== Description ===
'''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/>
<translate><br />
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
A rope joint enforces a maximum distance between two points on two bodies. It has no other effect.<br />
'''<translate>Inherits from</translate>:''' [[Special:MyLanguage/b2.Joint|b2.Joint]]<br/>
Warning: if you attempt to change the maximum length during the simulation you will get some non-physical behavior.<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.<br />
=== <translate>Description</translate> ===
See [[Special:MyLanguage/b2.DistanceJoint|b2.DistanceJoint]] if you want to dynamically control length. <br />
A rope joint enforces a maximum distance between two points on two bodies. It has no other effect.
<br /></translate>
 
'''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 [[Special:MyLanguage/b2.DistanceJoint|b2.DistanceJoint]] if you want to dynamically control length.
 
{|-
{|-
| 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/><!-- GIDEROSMTD:b2.RopeJoint:getMaxLength()  -->
[[Special:MyLanguage/b2.RopeJoint:setMaxLength|b2.RopeJoint:setMaxLength]] <br/>
[[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;"|
=== Events ===
=== <translate>Events</translate> ===
=== Constants ===
=== <translate>Constants</translate> ===
|}
|}
----
*'''[[B2.Joint]]'''
*'''[[LiquidFun]]'''

Latest revision as of 14:11, 18 February 2020


Supported platforms:
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