self:get_wall_normal

Client

Retrieves the normal of the wall the character body is currently touching


Syntax

local normal = self:get_wall_normal()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
vector3normalWall normal as {x, y, z}

Examples

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

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

On this page