diff options
author | sanine-a <sanine.not@pm.me> | 2023-04-13 10:07:04 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2023-04-13 10:07:04 -0500 |
commit | c09372fa140308194d2615ed97864a4ded54d626 (patch) | |
tree | 8bc9990734b9ce107b4bafe94b9ec19201320275 /main.lua | |
parent | 20494a0fe10011601c7573e6a7fa53bd891b1bc0 (diff) |
don't shallow copy component tables
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -44,7 +44,7 @@ package.loaded['baseRotationScript'] = function(db, id, dt) end package.loaded['cameraRotationScript'] = function(db, id, dt) local transform = db:getComponent(id, "transform") - transform.matrix:translate(Vec3{0, 0, -0.2*math.sin(math.pi * glfw.GetTime())}) + transform.matrix:identity():translate(Vec3{0, 0, -6 + math.sin(math.pi * glfw.GetTime())}) end |