Difference between revisions of "Body:setInertia"

m (included link to other languages)
(4th argument to Body:setMass seems to no longer exist)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
Set the inertia of a body.
 
Set the inertia of a body.
 
This value can also be set by the fourth argument of [[Body:setMass]].
 
  
 
== Function ==
 
== Function ==
Line 9: Line 7:
 
</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 * pixel squared.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
Line 16: Line 14:
 
* [[parent::Body]]
 
* [[parent::Body]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Set the inertia of a body.
+
{{#set:Description=Set the inertia of a body.}}
}}
+
{{#set:Since=000}}
  
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Body:setInertia}}
 
{{i18n|Body:setInertia}}

Latest revision as of 13:33, 19 August 2017

Set the inertia of a body.

Function

Synopsis

Body:setInertia( inertia )

Arguments

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

Returns

Nothing.

See Also


Other Languages