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();
        }
Beispiel #2
0
 public OrbitTrack(Track track)
     : base(track)
 {
 }
Beispiel #3
0
 public Track(Track copy)
 {
     this.Position = copy.Position;
     this.Rotation = copy.Rotation;
     this.Up = copy.Up;
     this.Right = copy.Right;
     this.Forward = copy.Forward;
 }
Beispiel #4
0
 public ZoomTrack(Track track)
     : base(track)
 {
     Delta = 1.0f;
 }
Beispiel #5
0
 public PanTrack(Track track)
     : base(track)
 {
 }