self:apply_floor_snap

Client

Immediately snaps the character body to the floor if it is within snapping distance


Syntax

local status = self:apply_floor_snap()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply floor snap on a character body
local entity = physics.character.create()

entity:apply_floor_snap()

On this page