How to change the FOV according to the player's speed?

How would I do so if character’s speed is for example bigger than 10 then FOV of the camera gets bigger?
There was a method to detect with what speed does the character walk but I don’t need that, I need to know the velocity.magnitude of for example the head of the character, how to do that?

1 Like

I would recommend putting it on springs, but without springs would be

--multiplier determines amount the fov changes
--idleFov is the default FOV you want
camera.FieldOfView = idleFov + math.max( head.Velocity.magnitude - 10, 0) * multiplier 
5 Likes