Character Body
self:set_floor_max_angle
SharedSets the maximum angle considered a walkable floor by the character body
Syntax
local status = self:set_floor_max_angle(
angle
)Parameters
| Type | Name | Description |
|---|---|---|
float | angle | Maximum floor angle to apply in degrees |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.character.create()
entity:set_floor_max_angle(45)