Collider:setEnabled

Edit

Enables or disables the Collider. When a Collider is disabled, it is removed from the World and does not impact the physics simulation in any way. The Collider keeps all of its state and can be re-enabled to add it back to the World.

Collider:setEnabled(enable)

Arguments

NameTypeDescription
enableboolean Whether the Collider should be enabled.

Returns

Nothing

See also