self:is_disabled

Client

Checks whether the collision shape is currently disabled


Syntax

local result = self:is_disabled()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if disabled, false otherwise

Examples

Check if a collision shape is disabled
local body = physics.rigid.create()
local entity = physics.collision_shape.create(body)

core.engine.print("info", "Collision shape disabled:", entity:is_disabled())

On this page