public Camera() { viewport = new Viewport(); track = new Track(); track.Parent = panTrack = new PanTrack(track); track.Parent.Parent = orbitTrack = new OrbitTrack(track); track.Parent.Parent.Parent = zoomTrack = new ZoomTrack(track); zoomTrack.Zoom(-5f); viewport.ProjectionChanged += viewport_ProjectionChanged; orbitTrack.Update(70, 60); zoomTrack.Update(-5); this.Update(); }
public OrbitTrack(Track track) : base(track) { }
public Track(Track copy) { this.Position = copy.Position; this.Rotation = copy.Rotation; this.Up = copy.Up; this.Right = copy.Right; this.Forward = copy.Forward; }
public ZoomTrack(Track track) : base(track) { Delta = 1.0f; }
public PanTrack(Track track) : base(track) { }