{{newin|[[0.8.0]]|080|type=method}}
Overrides the calculated mass data.

== Function ==
=== Synopsis ===
<source lang="lua">
Body:setMassData( x, y, mass, inertia )
</source>
=== Arguments ===
{{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.}}
=== Returns ===
Nothing.
== See Also ==
* [[parent::Body]]
* [[Body:getMassData]]
[[Category:Functions]]
{{#set:Description=Overrides the calculated mass data.}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|Body:setMassData}}