self:get_floor_normal
Client
Retrieves the normal of the floor the character body is currently standing on
Syntax
local normal = self:get_floor_normal()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
vector3 | normal | Floor normal as {x, y, z} |
Examples
local entity = physics.character.create()
local normal = entity:get_floor_normal()
core.engine.print("info", "Character body normal:", util.table.unpack(normal))