Character Body

self:set_floor_max_angle

Shared

Sets the maximum angle considered a walkable floor by the character body

Syntax

local status = self:set_floor_max_angle(
    angle
)

Parameters

TypeNameDescription
floatangleMaximum floor angle to apply in degrees

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the floor max angle of a character body
local entity = physics.character.create()

entity:set_floor_max_angle(45)

On this page