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