public Vector3 GetVelocity(float t)
 {
     return(BezierCubic.GetFirstDerivative(V1, V2, V3, V4, t));
 }
Ejemplo n.º 2
0
        public Vector3 GetVelocity(float t)
        {
            int i = GetStartingIndex(ref t);

            return(BezierCubic.GetFirstDerivative(points[i], points[i + 1], points[i + 2], points[i + 3], t));
        }