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
| Type | Name | Description |
|---|---|---|
bool | state | true to stop on slopes, false to allow sliding |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.character.create()
entity:set_floor_stop_on_slope_enabled(true)