Search Unity

Impulse only at edges of screen

Discussion in 'Cinemachine' started by Necrospasm, Sep 17, 2021.

  1. Necrospasm

    Necrospasm

    Joined:
    Apr 17, 2016
    Posts:
    9
    Hi,

    Is there a way to get screen shake based on impulses only at the edges of the screen instead of the full screen? Still trying to grasp how these impulses work but only managed to get a full screen shake. I'm basically trying to create a screenshake without affecting the center (crosshair) of the screen. Thanks
     
  2. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    If you are using the 3rdPersonFollow and 3rdPersonAim, then you will get exactly what you are looking for. This setup is for stable aim, even when there are noises/impulses added to the camera.
    Have a look at the AimingRig example scene - it has a complete setup with noise.

    You can get our examples from the Package Manager:
    examples.png
     
    Gregoryl likes this.