self:set_slide_on_ceiling_enabled

Client

Sets whether the character body slides along ceilings instead of stopping abruptly when its head hits one


Syntax

local status = self:set_slide_on_ceiling_enabled(
    state
)

Parameters

TypeNameDescription
boolstatetrue to slide on ceilings, false to stop abruptly

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Enable slide on ceiling for a character body
local entity = physics.character.create()

entity:set_slide_on_ceiling_enabled(true)

On this page