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. |