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
| Type | Name | Description |
|---|---|---|
vector3 | normal | Wall normal as {x, y, z} |
Examples
local entity = physics.character.create()
local normal = entity:get_wall_normal()
core.engine.print("info", "Character body normal:", util.table.unpack(normal))