Difference between revisions of "Body:getInertia"

m (See Also: Add some related functions)
 
(One intermediate revision by one other user not shown)
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 ==
Line 14: Line 14:
 
== See Also ==
 
== See Also ==
 
* [[parent::Body]]
 
* [[parent::Body]]
 +
* [[Body:setInertia]]
 +
* [[Body:getMassData]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Gets the rotational inertia of the body.}}
 
{{#set:Description=Gets the rotational inertia of the body.}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 +
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Body:getInertia}}
 
{{i18n|Body:getInertia}}

Latest revision as of 19:30, 25 November 2019

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