From c09372fa140308194d2615ed97864a4ded54d626 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Thu, 13 Apr 2023 10:07:04 -0500 Subject: don't shallow copy component tables --- main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.lua') diff --git a/main.lua b/main.lua index eda08f7..f5512b0 100644 --- a/main.lua +++ b/main.lua @@ -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 -- cgit v1.2.1