X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=support%2Fcamera.rs;h=77ad0933c26e85fdd85171a7d02b2bc4759067b3;hb=a9ced736da2b269caa43ce87fb7d8677fd3b01e4;hp=9f0e3bac45ea2422d0335a545b0e8c21b158dd28;hpb=4dc39ef481d889a00657ef9b22760cd2b0095e86;p=mandelwow.git 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 {