{{newin|[[0.8.0]]|080|type=method}}
Sets the density of the fixture. Call [[Body:resetMassData]] if this needs to take effect immediately.

== Function ==
=== Synopsis ===
<source lang="lua">
Fixture:setDensity( density )
</source>
=== Arguments ===
{{param|number|density|The fixture density in kilograms per square meter.}}
=== Returns ===
Nothing.
== See Also ==
* [[parent::Fixture]]
* [[Fixture:getDensity]]
[[Category:Functions]]
{{#set:Description=Sets the density of the fixture.}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|Fixture:setDensity}}