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
| Type | Name | Description |
|---|---|---|
vector3 | direction | Up direction to apply as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.character.create()
entity:set_up_direction({0, 1, 0})