I need to figure out how to create a screen shake that will activate when I trigger it using the virtual camera from cinemachine.
Any ideas?
I need to figure out how to create a screen shake that will activate when I trigger it using the virtual camera from cinemachine.
Any ideas?
Hi there,
You can read this piece of code: https://gist.github.com/ftvs/5822103
It is made to a normal Unity camera, but the only component altered is the transform. So I suppose it can work fine with Cinemachine cameras too.
Sorry, i am not very familiar with cinemachine cameras. But, as every unity gameobject has the transform component, it may work the same way.
Hope it helps.