1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-25 11:52:40 +01:00

Removed weird angle calculation that broke the camera in vehicles.

This commit is contained in:
Timmy Sjöstedt 2015-03-30 02:17:52 +02:00 committed by Daniel Evans
parent e50f2226a9
commit 1010861d0d

View File

@ -157,7 +157,6 @@ void IngameState::tick(float dt)
auto atrophy = std::min(1.f * glm::sign(_lookAngles.x - d) * dt, _lookAngles.x - d);
_lookAngles.x -= atrophy;
}
angle *= glm::angleAxis(glm::roll(vehicle->getRotation()) + glm::radians(90.f), glm::vec3(0.f, 0.f, 1.f));
}
// Move back from the character