Shape:setSensor

Sets whether this Shape is a sensor. Sensors do not trigger any collision response, but they still report collisions in World:collide.

Shape:setSensor(sensor)

Arguments

NameTypeDescription
sensorbooleanWhether the Shape should be a sensor.

Returns

Nothing

See also