{{newin|[[0.8.0]]|080|type=function}}
Creates and attaches a [[Fixture]] to a body.

Note that the [[Shape]] object is copied rather than kept as a reference when the Fixture is created. To get the Shape object that the Fixture owns, use [[Fixture:getShape]].

== Function ==
=== Synopsis ===
<source lang="lua">
fixture = love.physics.newFixture( body, shape, density )
</source>
=== Arguments ===
{{param|Body|body|The body which gets the fixture attached.}}
{{param|Shape|shape|The shape to be copied to the fixture.}}
{{param|number|density (1)|The density of the fixture.}}
=== Returns ===
{{param|Fixture|fixture|The new fixture.}}

== See Also ==
* [[parent::love.physics]]
* [[Constructs::Fixture]]
[[Category:Functions]]
{{#set:Description=Creates and attaches a fixture.}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|love.physics.newFixture}}