Difference between revisions of "Body:setInertia"

m
(Incorrect units)
Line 9: Line 9:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|number|inertia|The new moment of inertia, in kilograms per pixel squared.}}
+
{{param|number|inertia|The new moment of inertia, in kilograms * pixel squared.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.

Revision as of 23:53, 11 March 2015

Set the inertia of a body.

This value can also be set by the fourth argument of Body:setMass.

Function

Synopsis

Body:setInertia( inertia )

Arguments

number inertia
The new moment of inertia, in kilograms * pixel squared.

Returns

Nothing.

See Also


Other Languages