Sets a new body mass.

== Function ==
{{newin|[[0.8.0]]|080|type=variant}}
=== Synopsis ===
<source lang="lua">
body:setMass( mass )
</source>
=== Arguments ===
{{param|number|mass|The mass, in kilograms.}}
=== Returns ===
Nothing.

== Function ==
{{oldin|[[0.8.0]]|080|type=variant}}
Sets the mass properties directly.

If you're not sure what all this stuff means, you can use [[Body:setMassFromShapes]] after adding shapes instead. 

The first two parameters will be the local coordinates of the Body's [http://en.wikipedia.org/wiki/Center_of_mass center of mass].

The third parameter is the mass, in kilograms.

The last parameter is the [http://en.wikipedia.org/wiki/Moment_of_inertia rotational inertia]. 
=== Synopsis ===
<source lang="lua">
body:setMass( x, y, m, i )
</source>
=== Arguments ===
{{param|number|x|The x-component of the center of mass in local coordinates.}}
{{param|number|y|The y-component of the center of mass in local coordinates.}}
{{param|number|m|The mass, in kilograms.}}
{{param|number|i|The rotational inertia, in kilograms per squared meter.}}
=== Returns ===
Nothing.

== See Also ==
* [[parent::Body]]
[[Category:Functions]]
{{#set:Description=Sets the mass properties directly.}}
{{#set:Since=000}}

== Other Languages ==
{{i18n|Body:setMass}}