Working basic elements.

This commit is contained in:
jussi
2022-12-05 16:56:41 +02:00
parent bdbd475ae3
commit b3d2a9c0a2
5 changed files with 202 additions and 194 deletions

View File

@@ -47,13 +47,13 @@ function Vector3:new( x, y, z )
x, y, z = table.unpack( x )
end
local o = {
x = x,
y = y,
z = z,
}
setmetatable( o, Vector3.meta )
return o
local object = setmetatable( {}, Vector3.meta )
object.x = x
object.y = y
object.z = z
return object
end
function Vector3:set( x, y, z )