self:is_on_ceiling

Client

Checks whether the character body is currently touching a ceiling


Syntax

local result = self:is_on_ceiling()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if the condition is met, false otherwise

Examples

Check if a character body is on the ceiling
local entity = physics.character.create()

core.engine.print("info", "Character body on ceiling:", entity:is_on_ceiling())

On this page