Api > Quaternion > AngleAxis()
Quaternion.AngleAxis(number angle, Vector3 axis)⚓︎
Creates a rotation which rotates angle degrees around axis.
Parameters:⚓︎
Name | Type | Description |
---|---|---|
angle | number | angle |
axis | Vector3 | axis |
Returns:⚓︎
type | Description |
---|---|
Quaternion | rotation |
Usage⚓︎
---@type number
local angle;
---@type Vector3
local axis;
local val0 = Quaternion:AngleAxis(angle, axis)