docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateCatmullRom

    CreateCatmullRom(IList<float3>, bool)

    Create a Spline from a list of positions and place tangents to create Catmull Rom curves.

    Declaration
    public static Spline CreateCatmullRom(IList<float3> positions, bool closed = false)
    Parameters
    Type Name Description
    IList<float3> positions

    A collection of knot positions.

    bool closed

    Whether the spline is open (has a start and end point) or closed (forms an unbroken loop).

    Returns
    Type Description
    Spline

    A new Spline.

    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)