docs.unity3d.com
    Show / Hide Table of Contents

    Class CinemachineIndependentImpulseListener

    This behaviour can be attached to any object to make it shake in response to Impulses.

    This behaviour can be attached to the main Camera with the CinemachineBrain, to allow the main camera to shake without putting Listeners on the virtual cameras. In this case, camera shake is not dependent on the active virtual camera.

    It is also possible to put this behaviour on other scene objects to shake them in response to impulses.

    Inheritance
    Object
    CinemachineIndependentImpulseListener
    Namespace: Cinemachine
    Syntax
    public class CinemachineIndependentImpulseListener : MonoBehaviour

    Fields

    m_ChannelMask

    Impulse events on channels not included in the mask will be ignored.

    Declaration
    public int m_ChannelMask
    Field Value
    Type Description
    Int32

    m_Gain

    Gain to apply to the Impulse signal.

    Declaration
    public float m_Gain
    Field Value
    Type Description
    Single

    m_Use2DDistance

    Enable this to perform distance calculation in 2D (ignore Z).

    Declaration
    public bool m_Use2DDistance
    Field Value
    Type Description
    Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023