Collider:setAwake

Edit

Manually puts the Collider to sleep or wakes it up. You can do this if you know a Collider won't be touched for a while or if you need to it be active.

Collider:setAwake(awake)

Arguments

NameTypeDescription
awakeboolean Whether the Collider should be awake.

Returns

Nothing

See also