Difference between revisions of "B2.MouseJoint:getDampingRatio"
From GiderosMobile
m (Text replacement - "</source" to "</syntaxhighlight") |
|||
Line 8: | Line 8: | ||
<source lang="lua"> | <source lang="lua"> | ||
(number) = b2.MouseJoint:getDampingRatio() | (number) = b2.MouseJoint:getDampingRatio() | ||
− | </ | + | </syntaxhighlight> |
=== Return values === | === Return values === |
Revision as of 16:57, 12 July 2023
Available since: Gideros 2011.6
Class: b2.MouseJoint
Description
Returns the damping ratio. 0 = no damping, 1 = critical damping. <source lang="lua"> (number) = b2.MouseJoint:getDampingRatio() </syntaxhighlight>
Return values
Returns (number) the damping ratio