B2.Body:getInertia: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 2: Line 2:
'''Available since:''' Gideros 2012.2.2<br/>
'''Available since:''' Gideros 2012.2.2<br/>
=== Description ===
=== Description ===
<br />
<translate><br />
Returns the rotational inertia of the body about the local origin in kg-m^2.<br />
Returns the rotational inertia of the body about the local origin in kg-m^2.<br />
<br />
<br /></translate>
<source lang="lua">
<source lang="lua">
(number) = b2.Body:getInertia()
(number) = b2.Body:getInertia()
</source>
</source>
=== Return values ===
=== Return values ===
'''Returns''' (number) The rotational inertia of the body about the local origin in kg-m^2.<br/>
'''Returns''' (number) <translate>The rotational inertia of the body about the local origin in kg-m^2.</translate><br/>

Revision as of 12:38, 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()

Return values

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