Difference between revisions of "Body:getInertia"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 +
Gets the rotational inertia of the body.
 +
 +
The rotational inertia is how hard is it to make the body spin. It is set with the 4th argument to [[Body:setMass]], or automatically with [[Body:setMassFromShapes]].
  
 
== Function ==
 
== Function ==
Line 13: Line 16:
 
* [[parent::Body]]
 
* [[parent::Body]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Gets the rotational inertia of the body.
 +
}}

Revision as of 16:17, 14 February 2010

Gets the rotational inertia of the body.

The rotational inertia is how hard is it to make the body spin. It is set with the 4th argument to Body:setMass, or automatically with Body:setMassFromShapes.

Function

Synopsis

inertia = Body:getInertia( )

Arguments

None.

Returns

number inertia
The rotational inertial of the body.

See Also