Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Is it possible to set a max threshold on amplitude gain for camera shake?

Discussion in 'Cinemachine' started by LRG_ciaran, Feb 2, 2022.

  1. LRG_ciaran


    Oct 15, 2021
    Hi there!

    I'm using a Cinemachine Impulse Listener to apply camera shake to the virtual camera every time the player hits an enemy and vice versa. This is working great, but when more than one impulse is sent at once — the amplitude gain of the camera shake seems to double, triple etc. Is there a way to put a maximum cap on the camera's noise amplitude gain? Any help or guidance would be appreciated!

  2. Gregoryl


    Unity Technologies

    Dec 22, 2016
    Interesting request. You could certainly create a variant of CM ImpulseListener (just copy the file into your project, rename it, and start modifying - the code is simple) that clamps the magnitude of the impulse signal before applying it to the vcam state.