self:set_floor_stop_on_slope_enabled

Client

Sets whether the character body stops moving on steep slopes instead of sliding down


Syntax

local status = self:set_floor_stop_on_slope_enabled(
    state
)

Parameters

TypeNameDescription
boolstatetrue to stop on slopes, false to allow sliding

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Enable stop on slope for a character body
local entity = physics.character.create()

entity:set_floor_stop_on_slope_enabled(true)

On this page