This commit is contained in:
Nikita Kruglickiy
2021-04-03 21:08:08 +06:00
parent 1e9e783ee6
commit eb6144ae94
22 changed files with 1440 additions and 282 deletions

View File

@@ -14,11 +14,11 @@ function accessorFunc(tbl, varName, name, defaultValue)
end
end
function rotateAround(entity, pivot, angles)
function rotateAround(entity, pivot, angles)
local pos = entity:getPos()
local localPivotPos = entity:worldToLocal(pivot)
entity:setAngles(angles)
pos = pos + (pivot - entity:localToWorld(localPivotPos))
pos = pos + (pivot - entity:localToWorld(localPivotPos))
entity:setPos(pos)
end

View File

@@ -1,5 +1,5 @@
WORKERS = {}
WORKERS_QUOTA = 0.5
WORKERS_QUOTA = 0.4
local function execWorker(worker)
local status