Collision Shape
physics.collision_shape.set_debug_all
ClientShows 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
| Type | Name | Description |
|---|---|---|
bool | state | true to show wireframes on all collision shapes, false to hide them |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
physics.collision_shape.set_debug_all(true)