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

TypeNameDescription
vector3normalFloor normal as {x, y, z}

Examples

Get the floor normal of a character body
local entity = physics.character.create()
local normal = entity:get_floor_normal()

core.engine.print("info", "Character body normal:", util.table.unpack(normal))

On this page