31 public Vector3[] EDITOR_ControlPoints
45 protected void OnValidate()
68 float oneMinusTime = 1 - _time;
70 return oneMinusTime * oneMinusTime * oneMinusTime *
controlPoints[0] +
78 float oneMinusTime = 1 - _time;
87 #region Configurations
100 bool isPointsReady =
true;
Assume to be a cubic bezier curve at the moment.
static readonly int CubicBezierCurvePtNum
Vector3 GetTangent(float _time)
Vector3 GetPoint(float _time)
call this to get a sample
Credit Erdener Gonenc - @PixelEnvision.