Getting coordinates from vectors (SOLVED)

#1

How do you get the specific x,y,z coordinates from a vector?
Like how would I save just the x coordinate as a variable for example?

0 Likes

#2
local my_vector = vmath.vector3(78, 42, 61)
local x = my_vector.x -- 78
local y = my_vector.y -- 42
local z = my_vector.z -- 61
4 Likes

#3

Thank you

0 Likes