Hello, I was wondering how to make view bobbing in my game?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Wodsobe Dobe

Hello, I am making a 3d first person game, and I was wondering how I could make view bobbing work without intercepting with the rotation when I move my mouse. Anyone know any solutions?

:bust_in_silhouette: Reply From: Totchi Lagawi

Maybe you could try using an animation… It will run on top of your script, and rotate the camera according to your bobbing effect taking into account of the current camera rotation.