docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetRootVelocity

    GetRootVelocity(float, float)

    Calculates the root velocity along the current trajectory at a sampling time in seconds passed as argument.

    Declaration
    public float3 GetRootVelocity(float sampleTimeInSeconds, float timeHorizon)
    Parameters
    Type Name Description
    float sampleTimeInSeconds

    The sampling time in seconds.

    float timeHorizon

    Time horizon in seconds over which the velocity should be approximated.

    Returns
    Type Description
    float3

    Velocity in meters per second subject to the sampling time passed as argument.

    In This Article
    Back to top
    Copyright © 2024 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)