Example #1
0
 public Vector3 Interpolate(float localF)
 {
     localF = Mathf.Clamp01(localF);
     return(Spline.CatmulRom(this.PreviousPosition, this.Position, this.NextPosition, this.GetNext2Position(), localF));
 }
Example #2
0
 public void Init(Spline owner)
 {
     this.mSpline      = owner;
     this.SegmentIndex = -1;
 }
Example #3
0
 public void Init(Spline owner)
 {
     mSpline      = owner;
     SegmentIndex = -1;
 }
Example #4
0
 public Vector3 InterpolateNormal(float localF)
 {
     localF = Mathf.Clamp01(localF);
     return(Spline.CatmulRom(this.PreviousNormal, this.Normal, this.NextNormal, this.GetNext2Normal(), localF));
 }
 public void Init(Spline owner)
 {
     mSpline = owner;
     SegmentIndex = -1;
 }