Triggering Cinemachine Camera Shake Impulses Without Code
<p>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.</p>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:770/1*ntt9aMpsIy3h-RgWFHndEQ.gif" style="height:421px; width:700px" /></p>
<h1>Setting Up the Collision Impulse</h1>
<p>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.</p>
<p><a href="https://medium.com/@wesley.n.campbell/triggering-cinemachine-camera-shake-impulses-without-code-799943904fe7">Read More</a></p>