summaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
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