self:set_use_continuous_collision_detection
Client
Sets whether continuous collision detection (CCD) is enabled on the vehicle body
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.vehicle.create()
entity:set_use_continuous_collision_detection(true)