From f730824f03680d24aece974ff30b165c3d5220d8 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Tue, 24 Apr 2018 14:11:49 +0200 Subject: [PATCH] Normalized left for pointer lock controls --- src/controls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controls.rs b/src/controls.rs index c6f0ad6..5b6d000 100644 --- a/src/controls.rs +++ b/src/controls.rs @@ -324,7 +324,7 @@ impl Controls for FirstPersonControls { self.phi.cos() * self.theta.sin(), ); - self.left = Vector3::new(0.0, 1.0, 0.0).cross_product(self.forward); + self.left = Vector3::new(0.0, 1.0, 0.0).cross_product(self.forward).normalized(); // Move the cursor back to the center renderer