Log In  

i'm trying to use :copy when growing a userdata:

local a = vec(1, 1)
local b = vec(0, 0, 0)
a:copy (b)
print(b)
-- b is still zero

i figured maybe the vectors needed to be the same size but neither of these work either:

local a = vec(1, 1)
local b = vec(0, 0)
local c = vec(0, 0)
a:add (0, b)
a:copy (c)
print(a)
print(b)
print(c)
P#146798 2024-04-16 21:53


[Please log in to post a comment]