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