Home > decentraland-ecs > Curve3
A Curve3 object is a logical object, so not a mesh, to handle curves in the 3D geometric space. A Curve3 is designed from a series of successive Vector3. https://doc.babylonjs.com/how_to/how_to_use_curve3
Method | Access Modifier | Returns | Description |
---|---|---|---|
constructor(points) |
A Curve3 object is a logical object, so not a mesh, to handle curves in the 3D geometric space. A Curve3 is designed from a series of successive Vector3. Tutorial | ||
continue(curve) |
Curve3 |
Returns a new instance of Curve3 object : var curve = curveA.continue(curveB); This new Curve3 is built by translating and sticking the curveB at the end of the curveA. curveA and curveB keep unchanged. | |
CreateCatmullRomSpline(points, nbPoints, closed) |
Curve3 |
Returns a Curve3 object along a CatmullRom Spline curve : | |
CreateCubicBezier(v0, v1, v2, v3, nbPoints) |
Curve3 |
Returns a Curve3 object along a Cubic Bezier curve : http://doc.babylonjs.com/tutorials/How\_to\_use\_Curve3\#cubic-bezier-curve | |
CreateHermiteSpline(p1, t1, p2, t2, nbPoints) |
Curve3 |
Returns a Curve3 object along a Hermite Spline curve : http://doc.babylonjs.com/tutorials/How\_to\_use\_Curve3\#hermite-spline | |
CreateQuadraticBezier(v0, v1, v2, nbPoints) |
Curve3 |
Returns a Curve3 object along a Quadratic Bezier curve : http://doc.babylonjs.com/tutorials/How\_to\_use\_Curve3\#quadratic-bezier-curve | |
getPoints() |
Vector3[] |
||
length() |
number |