{{oldin|[[0.8.0]]|080|type=function}}
Sets whether this shape should act as a sensor.
Set the shape as a sensor if you want to be notified when collision between shapes occur, but don't want a physical response (for instance, maybe you want enemies to appear when the player "touches" a certain point).
== Function ==
=== Synopsis ===
<source lang="lua">
Shape:setSensor( sensor )
</source>
=== Arguments ===
{{param|boolean|sensor|True for sensor, false otherwise.}}
=== Returns ===
Nothing.
== See Also ==
* [[parent::Shape]]
[[Category:Functions]]
{{#set:Description=Sets whether this shape should act as a sensor.}}
{{#set:Since=000}}
== Other Languages ==
{{i18n|Shape:setSensor}}