Difference between revisions of "B2.DistanceJoint:setLength"

From GiderosMobile
Line 8: Line 8:
 
  b2.DistanceJoint:setLength(length)
 
  b2.DistanceJoint:setLength(length)
 
</source>
 
</source>
'''length''': (number) the length of this distance joint, usually in meters. ''''''<br/>
+
=== Parameters ===
 +
'''length''': (number) the length of this distance joint, usually in meters. <br/>

Revision as of 10:45, 23 August 2018

Available since: Gideros 2011.6

Description


Sets the natural length. Manipulating the length can lead to non-physical behavior when the frequency is zero.

 b2.DistanceJoint:setLength(length)

Parameters

length: (number) the length of this distance joint, usually in meters.