Character Body

self:get_floor_max_angle

Shared

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

Syntax

local angle = self:get_floor_max_angle()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatangleCurrent floor max angle in degrees

Examples

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

core.engine.print("info", "Character body floor max angle:", entity:get_floor_max_angle())

On this page