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