docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    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

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)