summaryrefslogtreecommitdiff
path: root/demo/FPSCamera.lua
diff options
context:
space:
mode:
Diffstat (limited to 'demo/FPSCamera.lua')
-rw-r--r--demo/FPSCamera.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/demo/FPSCamera.lua b/demo/FPSCamera.lua
index 7182638..7ee3cf8 100644
--- a/demo/FPSCamera.lua
+++ b/demo/FPSCamera.lua
@@ -22,8 +22,8 @@ camera.projection = Matrix.Mat4.perspective(math.rad(90),
function camera:update(dt)
local M = Matrix.Mat4.eye()
- M:rotate(Vector.Vec3.ZERO, self.basis.x, math.rad(self.pitch))
M:rotate(Vector.Vec3.ZERO, Vector.Vec3.Y_UNIT, math.rad(self.yaw))
+ M:rotate(Vector.Vec3.ZERO, Vector.Vec3.X_UNIT, math.rad(self.pitch))
self.basis = M:basis()
movement = Vector.Vec3.new()