Triggering Cinemachine Camera Shake Impulses Without Code

The basic Cinemachine Impulse Source component allows you to create camera shake behavior that you can easily call in code any time you want, but is there a way to trigger it without code? Turns out, you can trigger these impulses using collisions! Let’s create a mine explosion to use as an example.

Setting Up the Collision Impulse

We’ll start by creating a new game object to be our Mine and add a collider for the soldier to run into. Then we’ll create a script to trigger the particle effect, disable the soldier’s movement, and turn off its renderers.

Read More