docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetImpulseAt

    GetImpulseAt(Vector3, bool, int, out Vector3, out Quaternion)

    Get the signal perceived by a listener at a given location

    Declaration
    public bool GetImpulseAt(Vector3 listenerLocation, bool distance2D, int channelMask, out Vector3 pos, out Quaternion rot)
    Parameters
    Type Name Description
    Vector3 listenerLocation

    Where the listener is, in world coords

    bool distance2D

    True if distance calculation should ignore Z

    int channelMask

    Only Impulse signals on channels in this mask will be considered

    Vector3 pos

    The combined position impulse signal resulting from all signals active on the specified channels

    Quaternion rot

    The combined rotation impulse signal resulting from all signals active on the specified channels

    Returns
    Type Description
    bool

    true if non-trivial signal is returned

    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)