physics.collision_shape.set_debug_all

Client

Shows or hides the debug wireframe on every collision shape that currently exists, and sets the default for any collision shape created afterward — useful for a single global debug toggle


Syntax

local status = physics.collision_shape.set_debug_all(
    state
)

Parameters

TypeNameDescription
boolstatetrue to show wireframes on all collision shapes, false to hide them

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Toggle debug wireframes globally
physics.collision_shape.set_debug_all(true)

On this page