forked from hkc/cc-stuff
wallhack: fix vector functions returning objects of wrong schema
This commit is contained in:
parent
34319f09ad
commit
23f5549ee1
|
@ -20,11 +20,11 @@ return function()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function vec3Scale(k, v)
|
local function vec3Scale(k, v)
|
||||||
return {k * v.x, k * v.y, k * v.z}
|
return {x = k * v.x, y = k * v.y, z = k * v.z}
|
||||||
end
|
end
|
||||||
|
|
||||||
local function vec3Add(u, v)
|
local function vec3Add(u, v)
|
||||||
return {u.x + v.x, u.y + v.y, u.z + v.z}
|
return {x = u.x + v.x, y = u.y + v.y, z = u.z + v.z}
|
||||||
end
|
end
|
||||||
|
|
||||||
local function toFrontCoords(entity)
|
local function toFrontCoords(entity)
|
||||||
|
|
Loading…
Reference in New Issue