protected override void Update(GameTime gameTime) { base.Update(gameTime); if (MySpline != null) { _NearestPoint = MySpline.FindNearestPoint(TestTransform.Position, out _NearestPointSplinePosition, NearestPointAccuracy); } }