diff options
Diffstat (limited to 'gfx/followCameraController.cpp')
-rw-r--r-- | gfx/followCameraController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/followCameraController.cpp b/gfx/followCameraController.cpp index 1ee385a..e8a95b3 100644 --- a/gfx/followCameraController.cpp +++ b/gfx/followCameraController.cpp @@ -26,7 +26,7 @@ FollowCameraController::updateCamera(Camera * camera) const case Mode::Ride: camera->pos = pos + (up * 4.8F); - camera->forward = {-std::sin(rot.y), 0.F, -std::cos(rot.y)}; + camera->forward = !-sincosf(rot.y); camera->up = up; break; |