forked from hkc/cc-stuff
1
0
Fork 0

wallhack: fix vector functions returning objects of wrong schema

This commit is contained in:
Vftdan 2023-10-13 15:10:58 +03:00
parent 34319f09ad
commit 23f5549ee1
1 changed files with 2 additions and 2 deletions

View File

@ -20,11 +20,11 @@ return function()
end
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
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
local function toFrontCoords(entity)