public FirstPersonCamera(CameraChassis chassis) { _chassis = chassis; Velocity = 1.0f; Right = Vector3.UnitX; Forward = Vector3.UnitY; Up = Vector3.UnitZ; }
public MainWindow() { InitializeComponent(); _chassis = new CameraChassis(); _adtPresenter = new AdtChunkHierachyPresenter(_adtView); _wmoPresenter = new LoadedWmoChunkHierarchyPresenter(_wmoView); _tileSelectionPresenter = new TileSelectionPresenter(); _scenePresenter = new ScenePresenter(this, _chassis); WireUpEventHandlers(); }
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(); }