From b80e9217f5c38dd12259bb9ae747fe7dce2dc731 Mon Sep 17 00:00:00 2001 From: hiker Date: Thu, 6 Mar 2014 07:43:51 +1100 Subject: [PATCH] Fix camera tilting (some debug left-over broke it). --- src/graphics/camera.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/graphics/camera.cpp b/src/graphics/camera.cpp index ab908df7c..6dd9b2192 100644 --- a/src/graphics/camera.cpp +++ b/src/graphics/camera.cpp @@ -556,7 +556,6 @@ void Camera::positionCamera(float dt, float above_kart, float cam_angle, // Rotate the up vector (0,1,0) by the rotation ... which is just column 1 Vec3 up = m_kart->getTrans().getBasis().getColumn(1); float f = 0.04f; // weight for new up vector to reduce shaking - f = 0; m_camera->setUpVector(f * up.toIrrVector() + (1.0f - f) * m_camera->getUpVector()); } // kart && !flying