summaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2023-04-13 10:07:04 -0500
committersanine-a <sanine.not@pm.me>2023-04-13 10:07:04 -0500
commitc09372fa140308194d2615ed97864a4ded54d626 (patch)
tree8bc9990734b9ce107b4bafe94b9ec19201320275 /main.lua
parent20494a0fe10011601c7573e6a7fa53bd891b1bc0 (diff)
don't shallow copy component tables
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua2
1 files changed, 1 insertions, 1 deletions
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