Difference between revisions of "R3d.Body:getAngularDamping"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 4: Line 4:
 
=== Description ===
 
=== Description ===
 
Gets the body angular damping. Damping is the effect of reducing the velocity of the rigid body during the simulation (like air friction for instance).
 
Gets the body angular damping. Damping is the effect of reducing the velocity of the rigid body during the simulation (like air friction for instance).
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number) = r3d.Body:getAngularDamping()
 
(number) = r3d.Body:getAngularDamping()
 
</source>
 
</source>

Revision as of 14:30, 13 July 2023

Available since: Gideros 2020.2
Class: R3d.Body

Description

Gets the body angular damping. Damping is the effect of reducing the velocity of the rigid body during the simulation (like air friction for instance). <syntaxhighlight lang="lua"> (number) = r3d.Body:getAngularDamping() </source>

Return values

Returns (number) the body angular damping