Ejemplo n.º 1
0
 private Vector3 GetTangentOnSegment(int segmentIndex, float t)
 {
     return(CatmullRomSpline.FindSplineTangent(this.knots[segmentIndex].position, this.knots[segmentIndex + 1].position, this.knots[segmentIndex + 2].position, this.knots[segmentIndex + 3].position, t).normalized);
 }