docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetCurveInterpolation

    GetCurveInterpolation(int, float)

    Returns the interpolation ratio (0 to 1) that corresponds to a distance on a BezierCurve. The distance is relative to the curve.

    Declaration
    public float GetCurveInterpolation(int curveIndex, float curveDistance)
    Parameters
    Type Name Description
    int curveIndex

    The zero-based index of the curve.

    float curveDistance

    The distance measured from the knot at curveIndex to convert to a normalized interpolation ratio.

    Returns
    Type Description
    float

    The normalized interpolation ratio that matches the distance on the designated curve.

    Implements
    ISpline.GetCurveInterpolation(int, float)
    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)