Difference between revisions of "B2.DistanceJoint"

From GiderosMobile
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2011.6<br/> === Description === <br /> A distance joint constrains two points on two bodies to remain...")
 
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 6: Line 6:
 
A distance joint constrains two points on two bodies to remain at a fixed distance from each other. You can view this as a massless, rigid rod. <br />
 
A distance joint constrains two points on two bodies to remain at a fixed distance from each other. You can view this as a massless, rigid rod. <br />
 
<br />
 
<br />
 +
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 
{|-
 
{|-
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Methods ===
 
=== Methods ===
 +
[[b2.DistanceJoint:getDampingRatio]] - returns the damping ratio<br/>
 +
[[b2.DistanceJoint:getFrequency]] - returns the mass-spring-damper frequency in Hertz<br/>
 +
[[b2.DistanceJoint:getLength]] - returns the length of this distance joint in meters<br/>
 +
[[b2.DistanceJoint:setDampingRatio]] - sets the damping ratio (0 = no damping, 1 = critical damping)<br/>
 +
[[b2.DistanceJoint:setFrequency]] - sets the mass-spring-damper frequency in Hertz<br/>
 +
[[b2.DistanceJoint:setLength]] - sets the natural joint length in meters<br/>
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
 
|}
 
|}

Revision as of 08:57, 23 August 2018

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

Description


A distance joint constrains two points on two bodies to remain at a fixed distance from each other. You can view this as a massless, rigid rod.







Methods

b2.DistanceJoint:getDampingRatio - returns the damping ratio
b2.DistanceJoint:getFrequency - returns the mass-spring-damper frequency in Hertz
b2.DistanceJoint:getLength - returns the length of this distance joint in meters
b2.DistanceJoint:setDampingRatio - sets the damping ratio (0 = no damping, 1 = critical damping)
b2.DistanceJoint:setFrequency - sets the mass-spring-damper frequency in Hertz
b2.DistanceJoint:setLength - sets the natural joint length in meters

Events

Constants