From 5a3d91b5cfa87ea798ec1d103bf3129551cc8e7e Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Sat, 8 Apr 2017 12:17:46 -0400 Subject: [PATCH] Make A and D turn the camera left and right, respectively. --- support/camera.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/support/camera.rs b/support/camera.rs index 9f0e3ba..77ad093 100644 --- a/support/camera.rs +++ b/support/camera.rs @@ -131,11 +131,11 @@ impl CameraState { self.pos.2 -= f.2 * 0.01; } if self.turning_left { - let a: f32 = -0.05; + let a: f32 = 0.05; self.dir = Vec3(f.0 * a.cos() + f.2 * a.sin(), f.1, - f.0 * a.sin() + f.2 * a.cos()); } if self.turning_right { - let a: f32 = 0.05; + let a: f32 = -0.05; self.dir = Vec3(f.0 * a.cos() + f.2 * a.sin(), f.1, - f.0 * a.sin() + f.2 * a.cos()); } if self.turning_up { -- 2.25.1