Hello, I’m using Unity default FPS controller and I wonder how to add subtle camera shaking to it. Maybe I could somehow use scripts from Cinemachine?
Simplest way would be to just do a simple animation inside unity and just play the animation when moving.
Not saying that’s the best way, but is the simplest.
Click the camera, press ctrl + 6, it will open up the animator, click on create new. Then just create a few keyframes of the camera at different angles or positions…
Then you can just play the animation and stop it when not moving.
Try this.
You will will need a few parent GameObjects for the camera. The camera parent needs a zero transform which the script is added to. The script alters the zero transform values to provide shake.