self:set_floor_max_angle

Client

Sets the maximum angle, in radians, considered a walkable floor by the character body


Syntax

local status = self:set_floor_max_angle(
    radians
)

Parameters

TypeNameDescription
floatradiansMaximum floor angle to apply in radians

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(0.785)

On this page