self:set_use_continuous_collision_detection
Client
Sets whether continuous collision detection (CCD) is enabled, preventing fast-moving bodies from tunneling through thin geometry
Syntax
local status = self:set_use_continuous_collision_detection(
state
)Parameters
| Type | Name | Description |
|---|---|---|
bool | state | true to enable CCD, false to disable |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.rigid.create()
entity:set_use_continuous_collision_detection(true)