self:set_up_direction

Client

Sets the up direction used by the character body to determine floor, wall, and ceiling surfaces


Syntax

local status = self:set_up_direction(
    direction
)

Parameters

TypeNameDescription
vector3directionUp direction to apply as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the up direction of a character body
local entity = physics.character.create()

entity:set_up_direction({0, 1, 0})

On this page