docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method EvaluatePosition

    EvaluatePosition(float)

    Evaluates the position of a point, t, on a spline in world space.

    Declaration
    public float3 EvaluatePosition(float t)
    Parameters
    Type Name Description
    float t

    A value between 0 and 1 representing a percentage of the curve.

    Returns
    Type Description
    float3

    A tangent vector.

    EvaluatePosition(int, float)

    Evaluates the position of a point, t, on a spline at an index, splineIndex, in world space.

    Declaration
    public float3 EvaluatePosition(int splineIndex, float t)
    Parameters
    Type Name Description
    int splineIndex

    The index of the spline to evaluate.

    float t

    A value between 0 and 1 representing a percentage of the curve.

    Returns
    Type Description
    float3

    A world position along the spline.

    EvaluatePosition<T>(T, float)

    Evaluates the position of a point, t, on a given spline, in world space.

    Declaration
    public float3 EvaluatePosition<T>(T spline, float t) where T : ISpline
    Parameters
    Type Name Description
    T spline

    The spline to evaluate.

    float t

    A value between 0 and 1 representing a percentage of the curve.

    Returns
    Type Description
    float3

    A world position along the spline.

    Type Parameters
    Name Description
    T

    The spline type.

    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)