public Vector3 GetPosition(float t) { ISpline sp = Spline; if (sp == null) { Dbg.LogErr("BaseSplineBehaviour.GetPosition: not set spline yet"); return(Vector3.zero); } Dbg.Assert(0 <= t && t <= 1, "BaseSplineBehaviour.GetPosition: t beyond range: {0}", t); Vector3 pos = sp.Interp(t); return(pos); }