Esempio n. 1
0
 public Vector3 GetPoint(float t)
 {
     return(transform.TransformPoint(Bezier.GetPoint(points[0], points[1], points[2], points[3], t)));
 }
Esempio n. 2
0
 public Vector3 GetVelocity(float t)
 {
     return(transform.TransformPoint(Bezier.GetFirstDerivative(points[0], points[1], points[2], points[3], t)) - transform.position);
 }
Esempio n. 3
0
 public Vector3 GetLocalPoint(float t)
 {
     return(Bezier.GetPoint(points[0], points[1], points[2], points[3], t));
 }