Fix camera tilting (some debug left-over broke it).
This commit is contained in:
parent
eba8fd1e45
commit
b80e9217f5
@ -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
|
// Rotate the up vector (0,1,0) by the rotation ... which is just column 1
|
||||||
Vec3 up = m_kart->getTrans().getBasis().getColumn(1);
|
Vec3 up = m_kart->getTrans().getBasis().getColumn(1);
|
||||||
float f = 0.04f; // weight for new up vector to reduce shaking
|
float f = 0.04f; // weight for new up vector to reduce shaking
|
||||||
f = 0;
|
|
||||||
m_camera->setUpVector(f * up.toIrrVector() +
|
m_camera->setUpVector(f * up.toIrrVector() +
|
||||||
(1.0f - f) * m_camera->getUpVector());
|
(1.0f - f) * m_camera->getUpVector());
|
||||||
} // kart && !flying
|
} // kart && !flying
|
||||||
|
Loading…
Reference in New Issue
Block a user