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

TypeNameDescription
floatlengthSnap length to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the floor snap length of a character body
local entity = physics.character.create()

entity:set_floor_snap_length(0.1)

On this page