Difference between revisions of "Body:getInertia"

(Body:setMassFromShapes and 4th argument to Body:setMass seem to no longer exist)
Line 1: Line 1:
 
Gets the rotational inertia of the body.
 
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]].
+
The rotational inertia is how hard is it to make the body spin.
  
 
== Function ==
 
== Function ==

Revision as of 13:33, 19 August 2017

Gets the rotational inertia of the body.

The rotational inertia is how hard is it to make the body spin.

Function

Synopsis

inertia = Body:getInertia( )

Arguments

None.

Returns

number inertia
The rotational inertial of the body.

See Also


Other Languages