1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 10:22:52 +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
parent b9462e077d
commit 290933d197

View File

@ -175,7 +175,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