Collider:setEnabled
EditEnables 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
Name | Type | Description |
enable | boolean | Whether the Collider should be enabled. |
Returns
Nothing