Difference between revisions of "B2.Body:getInertia"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2012.2.2<br/> === Description === <br /> Returns the rotational inertia of the body about the local origin in kg-m^2.<br /> <br /> <so...")
 
Line 6: Line 6:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
(number), = b2.Body:getInertia()
+
(number) = b2.Body:getInertia()
 
</source>
 
</source>
 
'''Returns''' (number) The rotational inertia of the body about the local origin in kg-m^2.<br/>
 
'''Returns''' (number) The rotational inertia of the body about the local origin in kg-m^2.<br/>

Revision as of 10:19, 23 August 2018

Available since: Gideros 2012.2.2

Description


Returns the rotational inertia of the body about the local origin in kg-m^2.

(number) = b2.Body:getInertia()

Returns (number) The rotational inertia of the body about the local origin in kg-m^2.