docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetCurveUpVector

    GetCurveUpVector(int, float)

    Return the up vector for a t ratio on the curve.

    Declaration
    public float3 GetCurveUpVector(int index, float t)
    Parameters
    Type Name Description
    int index

    The index of the curve for which the length needs to be retrieved.

    float t

    A value between 0 and 1 representing the ratio along the curve.

    Returns
    Type Description
    float3

    Returns the up vector at the t ratio of the curve of index 'index'.

    Implements
    ISpline.GetCurveUpVector(int, float)
    Remarks

    It is inefficient to call this method frequently, as it will calculate the up Vector of the curve every time it is invoked. In cases where performance is critical, create a new Spline or NativeSpline instead. Note that you may pass a SplineSlice<T> to constructors for both Spline and NativeSpline.

    In This Article
    • GetCurveUpVector(int, float)
    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)