Collision Shape

physics.collision_shape.set_debug_all

Client

Shows or hides the debug wireframe on all collision shapes, including ones created afterward

Syntax

local status = physics.collision_shape.set_debug_all(
    state
)

Wireframe color shows whether the shape is replicated.

  • Replicated — orange wireframe, the shape sits on an entity that is synced from the server, so it exists for every player.
  • Not replicated — green wireframe, the shape sits on a local entity created by a client-side script and is only present on this client.

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