self:set_quaternion
Client
Sets the local rotation of the character body using a quaternion
Syntax
local status = self:set_quaternion(
quaternion
)Parameters
| Type | Name | Description |
|---|---|---|
vector4 | quaternion | Rotation to apply as {x, y, z, w} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.character.create()
entity:set_quaternion({0, 0, 0, 1})