self:set_floor_snap_length
Client
Sets the distance the character body will snap down to stay attached to the floor when walking down slopes or steps
Syntax
local status = self:set_floor_snap_length(
length
)Parameters
| Type | Name | Description |
|---|---|---|
float | length | Snap length to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.character.create()
entity:set_floor_snap_length(0.1)