docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetReaction

    GetReaction(float, Vector3, out Vector3, out Quaternion)

    Get the rection effect for a given impulse at a given time.

    Declaration
    public bool GetReaction(float deltaTime, Vector3 impulsePos, out Vector3 pos, out Quaternion rot)
    Parameters
    Type Name Description
    float deltaTime

    Current time interval

    Vector3 impulsePos

    The input impulse signal at this time

    Vector3 pos

    output reaction position delta

    Quaternion rot

    output reaction rotation delta

    Returns
    Type Description
    bool

    True if there is a reaction effect, false otherwise

    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)