Shape:setSensor
EditSets whether this Shape is a sensor. When a Shape is a sensor, it will not generate any collision response when it collides with things, but collisions can still be detected with World:collide
and World:getContacts
.
Shape:setSensor(sensor)
Arguments
Name | Type | Description |
sensor | boolean | Whether the Shape should be a sensor. |
Returns
Nothing