Struct CinemachineImpulseListener.ImpulseReaction
This controls the secondary reaction of the listener to the incoming impulse.
The impulse might be for example a sharp shock, and the secondary reaction could
be a vibration whose amplitude and duration is controlled by the size of the
original impulse. This allows different listeners to respond in different ways
to the same impulse signal.
Inherited Members
Namespace: Unity.Cinemachine
Assembly: solution.dll
Syntax
[Serializable]
public struct CinemachineImpulseListener.ImpulseReaction
Fields
Name | Description |
---|---|
AmplitudeGain | Gain to apply to the amplitudes defined in the signal source asset. |
Duration | How long the secondary reaction lasts. |
FrequencyGain | Scale factor to apply to the time axis. |
m_SecondaryNoise | Secondary shake that will be triggered by the primary impulse |
Methods
Name | Description |
---|---|
GetReaction(float, Vector3, out Vector3, out Quaternion) | Get the rection effect for a given impulse at a given time. |
ReSeed() | Generate a new random seed |