Prevent crouching while jumping/falling

I noticed that the animation still looked glitchy if I tried to start crouching in mid-air. Most notably the camera got a sudden vertical offset. My solution is a condition that may prevent the reaction to the crouch start:

2 Likes

Today I noticed that the “sudden vertical offset” of the camera happens with any crouch, also while grounded. I think it is there in Mike’s videos too, but hard to see in this one (Crouching While Walking | GameDev.tv) because of his viewport size.

A nice way to solve the ugly camera movement is just enabling camera lag on the camera boom; default settings seem ok.

(Note to self: With the Aiming Down Sight lecture further down we get another source of camera insta-jumps - try to make that one smooth, too. :face_with_monocle: :grinning: )

Privacy & Terms