self:is_debug_visible

Client

Checks whether the debug wireframe of the collision shape is currently visible


Syntax

local result = self:is_debug_visible()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if the debug wireframe is visible, false otherwise

Examples

Check debug wireframe visibility on a collision shape
local body = physics.rigid.create()
local entity = physics.collision_shape.create(body)

core.engine.print("info", "Collision shape debug visible:", entity:is_debug_visible())

On this page