Shape:setSensor

Edit

Sets 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

NameTypeDescription
sensorboolean Whether the Shape should be a sensor.

Returns

Nothing

See also