Пример #1
0
        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();
        }
Пример #2
0
 public OrbitTrack(Track track)
     : base(track)
 {
 }
Пример #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;
 }
Пример #4
0
 public ZoomTrack(Track track)
     : base(track)
 {
     Delta = 1.0f;
 }
Пример #5
0
 public PanTrack(Track track)
     : base(track)
 {
 }