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:
parent
e50f2226a9
commit
1010861d0d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user