docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateAndReturnEvent

    CreateAndReturnEvent(Vector3, Vector3)

    Generate an impulse event at a location in space, and broadcast it on the appropriate impulse channel

    Declaration
    public CinemachineImpulseManager.ImpulseEvent CreateAndReturnEvent(Vector3 position, Vector3 velocity)
    Parameters
    Type Name Description
    Vector3 position

    Event originates at this position in world space

    Vector3 velocity

    This direction is considered to be "down" for the purposes of the event signal, and the magnitude of the signal will be scaled according to the length of this vector

    Returns
    Type Description
    CinemachineImpulseManager.ImpulseEvent

    The newly-created impulse event. This can be used to dynamically adjust the event settings while the event is active. Note that this event object may be recycled for future events, so the pointer should not be retained for too long.

    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)