Collider:isEnabled

Edit

Returns whether the Collider is enabled. 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.

enabled = Collider:isEnabled()

Arguments

None

Returns

NameTypeDescription
enabledboolean Whether the Collider is enabled.

Notes

Colliders are enabled when they are created.

See also