Пример #1
0
 /// <summary>
 /// Get the velocity of the curve for the t value
 /// </summary>
 /// <param name="t">value</param>
 /// <returns></returns>
 public Vector3 GetVelocity(float t)
 {
     return(transform.TransformPoint(Bezier.GetFirstDerivative(points[0], points[1], points[2], points[3], t)) - transform.position);
 }