• Creates a SplineContainer from an array of points.

    Parameters

    • positions: Vector3[]

      The positions of the knots.

    • closed: boolean = false

      Whether the spline is closed (the last knot connects to the first).

    • tension: number = .75

      The tension of the spline. 0 is no tension, 1 is high tension (straight lines between knots). Default is 0.75.

    Returns SplineContainer

    The created SplineContainer component - add it to an Object3D to use it.