{{oldin|[[0.8.0]]|080|type=function}}
Sets the density of a Shape. 
Do this before calling [[Body:setMassFromShapes]].
== Function ==
=== Synopsis ===
<source lang="lua">
Shape:setDensity( density )
</source>
=== Arguments ===
{{param|number|density|The new density of the Shape.}}
=== Returns ===
Nothing.
== See Also ==
* [[parent::Shape]]
[[Category:Functions]]
{{#set:Description=Sets the density of a Shape.}}
{{#set:Since=000}}
== Other Languages ==
{{i18n|Shape:setDensity}}