Пример #1
0
        public Vector3 GetVelocity(float t)
        {
            Vector3 position = transform.position;

            return(transform.TransformPoint(Bezier.GetFirstDerivative(_points[0], _points[1], _points[2], _points[3], t)) - position);
        }
Пример #2
0
 public Vector3 GetPoint(float t)
 {
     return(transform.TransformPoint(Bezier.GetPoint(_points[0], _points[1], _points[2], _points[3], t)));
 }