Skip to content

CatmullRomCurve3

new CatmullRomCurve3(points?: Vector3[], closed?, curveType?, tension?)

THREE equivalent: THREE.CatmullRomCurve3

3D Catmull-Rom spline through a set of control points. Supports centripetal, chordal, and catmullrom curve types.

Name Type Description
points Vector3[] Control points the spline passes through.
closed boolean Whether the curve loops. Default false.
curveType string ‘centripetal’, ‘chordal’, or ‘catmullrom’. Default ‘centripetal’.
tension number Tension parameter for catmullrom type. Default 0.5.
Method Description
getPoint(t: number, target?: Vector3): Vector3 Returns the point at parameter t.