{{newin|[[0.8.0]]|080|type=function}}
Computes the mass properties for the shape with the specified density.

== Function ==
=== Synopsis ===
<source lang="lua">
x, y, mass, inertia = Shape:computeMass( density )
</source>
=== Arguments ===
{{param|number|density|The shape density.}}
=== Returns ===
{{param|number|x|The x postition of the center of mass.}}
{{param|number|y|The y postition of the center of mass.}}
{{param|number|mass|The mass of the shape.}}
{{param|number|inertia|The rotational inertia.}}

== See Also ==
* [[parent::Shape]]
[[Category:Functions]]
{{#set:Description=Computes the mass properties for the shape.}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|Shape:computeMass}}