Home > decentraland-ecs > Curve3 > CreateQuadraticBezier
Returns a Curve3 object along a Quadratic Bezier curve : http://doc.babylonjs.com/tutorials/How\_to\_use\_Curve3\#quadratic-bezier-curve
Signature:
static CreateQuadraticBezier(v0: Vector3, v1: Vector3, v2: Vector3, nbPoints: number): Curve3;
Returns: Curve3
the created Curve3
Parameter | Type | Description |
---|---|---|
v0 |
Vector3 |
(Vector3) the origin point of the Quadratic Bezier |
v1 |
Vector3 |
(Vector3) the control point |
v2 |
Vector3 |
(Vector3) the end point of the Quadratic Bezier |
nbPoints |
number |
(integer) the wanted number of points in the curve |