Exemplo n.º 1
0
 public FirstPersonCamera(CameraChassis chassis)
 {
     _chassis = chassis;
     Velocity = 1.0f;
     Right    = Vector3.UnitX;
     Forward  = Vector3.UnitY;
     Up       = Vector3.UnitZ;
 }
Exemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();
            _chassis                = new CameraChassis();
            _adtPresenter           = new AdtChunkHierachyPresenter(_adtView);
            _wmoPresenter           = new LoadedWmoChunkHierarchyPresenter(_wmoView);
            _tileSelectionPresenter = new TileSelectionPresenter();
            _scenePresenter         = new ScenePresenter(this, _chassis);

            WireUpEventHandlers();
        }
Exemplo n.º 3
0
 public ScenePresenter(ISceneView view, CameraChassis chassis)
 {
     _view           = view;
     chassis.Inertia = 3.0f;
     _camera         = new FirstPersonCamera(chassis)
     {
         Forward  = Vector3.UnitX,
         Right    = -Vector3.UnitY,
         Up       = Vector3.UnitZ,
         Velocity = 80.0f,
     };
     _service.TileLoaded += (s, e) => ResetPerTileState();
 }