From: Bernie Innocenti Date: Sat, 8 Apr 2017 16:17:46 +0000 (-0400) Subject: Make A and D turn the camera left and right, respectively. X-Git-Tag: v0.4.0~7 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=5a3d91b5cfa87ea798ec1d103bf3129551cc8e7e;p=mandelwow.git Make A and D turn the camera left and right, respectively. --- 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 {