{{newin|[[0.8.0]]|080|type=method}}
Returns the mass, its center, and the rotational inertia.

== Function ==
=== Synopsis ===
<source lang="lua">
x, y, mass, inertia = Body:getMassData( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|x|The x position of the center of mass.}}
{{param|number|y|The y position of the center of mass.}}
{{param|number|mass|The mass of the body.}}
{{param|number|inertia|The rotational inertia.}}
== See Also ==
* [[parent::Body]]
* [[Body:setMassData]]
[[Category:Functions]]
{{#set:Description=Returns the mass, its center, and the rotational inertia.}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|Body:getMassData}}