mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-25 09:30:03 +00:00
Remove comments of inlined versions
This commit is contained in:
parent
611101b309
commit
912abae43b
2 changed files with 0 additions and 15 deletions
|
@ -44,9 +44,6 @@ local function mobsMove(dt: number)
|
||||||
end
|
end
|
||||||
|
|
||||||
local moving = CFrame.new(p + (target - p).Unit * dt * v)
|
local moving = CFrame.new(p + (target - p).Unit * dt * v)
|
||||||
--local record = world.entityIndex.sparse[mob]
|
|
||||||
--local archetype = record.archetype
|
|
||||||
--archetype.columns[archetype.records[Transform].column][record.row] = moving
|
|
||||||
world:set(mob, Transform, moving)
|
world:set(mob, Transform, moving)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -9,18 +9,6 @@ local Model = cts.Model
|
||||||
local Transform = cts.Transform
|
local Transform = cts.Transform
|
||||||
|
|
||||||
local function move(dt: number)
|
local function move(dt: number)
|
||||||
-- for i, archetype in world:query(Transform, Model):archetypes() do
|
|
||||||
-- local columns = archetype.columns
|
|
||||||
-- local records = archetype.records
|
|
||||||
-- local M = columns[records[Model].column]
|
|
||||||
-- local CF = columns[records[Transform].column]
|
|
||||||
|
|
||||||
-- for row, entity in archetype.entities do
|
|
||||||
-- local model, cf = M[row], CF[row]
|
|
||||||
|
|
||||||
-- model.PrimaryPart.CFrame = cf
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
for _, cf, model in world:query(Transform, Model) do
|
for _, cf, model in world:query(Transform, Model) do
|
||||||
model.PrimaryPart.CFrame = cf
|
model.PrimaryPart.CFrame = cf
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue