Difference between revisions of "Body:setInertia"

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

Revision as of 23:46, 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 per pixel squared.

Returns

Nothing.

See Also


Other Languages