docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetCurveInterpolation

    GetCurveInterpolation(int, float)

    Return the interpolation ratio (0 to 1) corresponding to a distance on a BezierCurve. Distance is relative to the curve.

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

    The zero-based index of the curve.

    float curveDistance

    The distance (measuring from the knot at curveIndex) to convert to a normalized interpolation ratio.

    Returns
    Type Description
    float

    The normalized interpolation ratio matching distance on the designated curve.

    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)