API that creates Bezier curves based on N control points.
- Edit mode debugger
- Real time debug in editor and gameplay
- Baked curve to saving processing
- Calculate normal and tangent vectors
- Debug of parameter of parametric curve along the curve
public Vector3 Curve(float curveStep, int controlPointIndex = 0)
Calculate Bezier curve using control points
curveStep: parameter of parametric curve that walks along the curve. 0 is the start of curve, 1 is the end of curve; controlPointIndex: index of control point in sum of all control points. For calculate whole curve, don't use this parameter.
Point in space
public List BakeCurve(float curveStepLenght)
Calculate curve and store in list of baked point. It saves processing in game time
curveStepLenght: parameter of parametric curve that walks along the curve. 0 is the start of curve, 1 is the end of curve;
List of BakedPoint
Precalculated curve point
public Vector3 point: world point public Vector3 tangent: point tangent vector public Vector3 normal: point normal vector
Control point of Bezier curve
public GameObject point: object to get transform public Color color: color of debug point