Exemplo n.º 1
0
 public Vector3 Interpolate(float localF)
 {
     localF = Mathf.Clamp01(localF);
     return(Spline.CatmulRom(this.PreviousPosition, this.Position, this.NextPosition, this.GetNext2Position(), localF));
 }
Exemplo n.º 2
0
 public void Init(Spline owner)
 {
     this.mSpline      = owner;
     this.SegmentIndex = -1;
 }
Exemplo n.º 3
0
 public void Init(Spline owner)
 {
     mSpline      = owner;
     SegmentIndex = -1;
 }
Exemplo n.º 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;
 }