i added a ScreenShakeScript with adjustable power and shake cooldown. modified rock prefab to invoke shakes
To make it work the Virtual Camera from cinemachine needs "Cinemachiune Impulse Listener" dont change any settings.
Then add ScreenShakeScript to a component as well as "Cinemachine Impulse Source"
the script right now invokes shake when colliding with Train and Player, player collision invokes it with 0.3 strength.
Since our camera isnt a prefab and i dont want to modify the scenes to not mess up anybodys work remember that virtual camera need impulse listener <3
i added a ScreenShakeScript with adjustable power and shake cooldown. modified rock prefab to invoke shakes
To make it work the Virtual Camera from cinemachine needs "Cinemachiune Impulse Listener" dont change any settings. Then add ScreenShakeScript to a component as well as "Cinemachine Impulse Source"
the script right now invokes shake when colliding with Train and Player, player collision invokes it with 0.3 strength.
Since our camera isnt a prefab and i dont want to modify the scenes to not mess up anybodys work remember that virtual camera need impulse listener <3