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

TypeNameDescription
boolstatetrue to enable CCD, false to disable

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Enable CCD on a rigid body
local entity = physics.rigid.create()

entity:set_use_continuous_collision_detection(true)

On this page