Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 912 Bytes

decentraland-ecs.curve3.createquadraticbezier.md

File metadata and controls

23 lines (16 loc) · 912 Bytes

Home > decentraland-ecs > Curve3 > CreateQuadraticBezier

Curve3.CreateQuadraticBezier method

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

Parameters

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