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
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.character.create()
entity:apply_floor_snap()