CatmullRomCurve3 constructor
CatmullRomCurve3({})
points
– An array of Vector3
points
closed
– Whether the curve is closed. Default is false
.
curveType
– Type of the curve. Default is centripetal
.
tension
– Tension of the curve. Default is 0.5
.
Implementation
CatmullRomCurve3({List<Vector>? points, this.closed = false, this.curveType = 'centripetal', this.tension = 0.5}): super() {
this.points = points ?? [];
}