Camera Lag does not change via lerp?

Cronoss95
Sun, 16 Feb 2025 13:54:26 +0000
Programming & Scripting

Hello!
I am using a true first person camera, but since I added a crouch function, I noticed that the movement of the head is waay to sharp and could also lead to motion sickness.
So I decided to rework the camera, add a spring arm and the movement itself is very smooth with a camera lag, but I only want the lag during the crouch.
This works as well, via the bool provided from the spring arm, but once the player exits the crouch, the camera gets jitted back to its original place very abruptly.
So I thought I could use a timeline to just change the camera lag to zero, once the player exits the crouch and the camera would smoothly transition back to its original place.
However, even though the timeline changes the value, in game, nothing happens.
The value drops from 10 to 0, but the smoothing is still exactly the same.
Am I handlign the camera lag speed value wrong here?

6 posts - 3 participants