public void InitCamera() { Vector2d start = Rider.Create( _track.StartOffset, Vector2d.Zero, _track.Remount).CalculateCenter();//avoid a timeline query if (Camera != null) { Camera.BeginFrame(1, Zoom); start = Camera.GetCenter(true); } if (Settings.SmoothCamera) { if (Settings.PredictiveCamera) { Camera = new PredictiveCamera(); } else { Camera = new SoftCamera(); } } else { Camera = new ClampCamera(); } Camera.SetTimeline(Timeline); Camera.SetFrameCenter(start); }
public Rider GetStart() { return(Rider.Create(this.StartOffset, new Vector2d(ZeroStart ? 0 : RiderConstants.StartingMomentum, 0))); }