W3cubDocs

/LÖVE

Body:getInertia

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


© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Body:getInertia