{{newin|[[0.8.0]]|080|type=method}}
Sets whether the fixture should act as a sensor.

Sensors do not cause collision responses, but the begin-contact and end-contact [[World:setCallbacks|World callbacks]] will still be called for this fixture.

== Function ==
=== Synopsis ===
<source lang="lua">
Fixture:setSensor( sensor )
</source>
=== Arguments ===
{{param|boolean|sensor|The sensor status.}}
=== Returns ===
Nothing.
== See Also ==
* [[parent::Fixture]]
* [[Fixture:isSensor]]
[[Category:Functions]]
{{#set:Description=Sets whether the fixture should act as a sensor.}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|Fixture:setSensor}}