Commit 1181efa1 authored by Dario Seyb's avatar Dario Seyb

more polish

parent 763c759e
......@@ -488,6 +488,11 @@ void PlayerSystem::update(float dt) {
}
float targetFOV = 50 + (1.0 - exp(-glm::abs(velocity) * 0.001)) * 5 * glm::sign(velocity);
float currentFOV = m_cockpitCamera.component<Camera>()->fov;
m_cockpitCamera.component<Camera>()->fov = m_mainCamera.component<Camera>()->fov = currentFOV + (targetFOV - currentFOV) * dt * 5;
skyboxCamTransform->rotation = cameraTransform->rotation;
// Check if we have to move the player to a different coordinate system.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment