Cinemachine Noise Settings Asset only move its signal relative to world.

While creating a Cinemachine Noise Setting asset I noticed that the position of the noise is relative to the world and cannot be set to be relative to the virtual camera or the object with the Cinemachine Impulse Source.
This is fine if the game is in 2D, but if the game is 3D and you only want the camera shake in one direction (e.g. forward and back when shooting a bullet from a gun), the shake direction will change the moment you rotate your character (forward and back will become left and right).
Is there any way to make the signal movement relative to the camera or impulse source?
Thank you!

Yes. Use the Impulse Source’s GenerateImpulse(Vector3 velocity) to generate your impulse event. Pass it camera forward as the velocity. This parameter indicates the “down” direction for the impulse event. By default, -Y is used. Then, make your signal have the dominant shake on the Y axis. That will make the camera shake along camera Z because you passed camera forward as the event velocity.

1 Like

Oh yes, this works perfectly, thank you Gregoryl!

1 Like

…ummm, I definitely will try this. could also be the solution for my problem!

1 Like