Tweak the cam tilt

This commit is contained in:
samuncle 2014-02-17 23:47:07 +01:00
parent ceecec0fa0
commit e3f85ba41b

View File

@ -536,7 +536,7 @@ 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.05f; // weight for new up vector to reduce shaking
float f = 0.04f; // weight for new up vector to reduce shaking
m_camera->setUpVector( f * up.toIrrVector() +
(1.0f-f) * m_camera->getUpVector() );
} // positionCamera