math namespace
local new_vec = math.vec3(10, 0, 0)
Parameterarrow-up-right
Datatypearrow-up-right
Defaultarrow-up-right
x
number
❌
y
parameter x
z
Returns:
Valuearrow-up-right
vector object
math.vec3arrow-up-right
math.vector_angles(math.vec3(0.5, 0.2, 0.8))
Descriptionarrow-up-right
forward
the forward vector to convert to angles
angles
math.angle_vectors(math.vec3(0, 90, 0))
angle
the angle to convert to directions
right
up
Last updated 3 years ago