public override void Update() { base.Update(); camera.Update(); m_BunnyRenderObject.Update(GameTime.ElapsedMilliseconds); rot = 0; //+= (float)(GameTime.ElapsedSeconds * 15.0f); foreach (var cube in m_Cube) { cube.Update(rot); } if (this.Input.WasPressed(KeyCode.KEYCODE_TAB)) { IsWireframeMode = !IsWireframeMode; } if (this.Input.IsDown(KeyCode.KEYCODE_W)) { if (this.Input.IsDown(KeyCode.KEYCODE_LSHIFT)) { camera.MoveForward(0.4f); } else { camera.MoveForward(0.05f); } } if (this.Input.IsDown(KeyCode.KEYCODE_S)) { if (this.Input.IsDown(KeyCode.KEYCODE_LSHIFT)) { camera.MoveForward(-0.4f); } else { camera.MoveForward(-0.05f); } } if (this.Input.IsDown(KeyCode.KEYCODE_A)) { if (this.Input.IsDown(KeyCode.KEYCODE_LSHIFT)) { camera.MoveRight(-0.01f); } else { camera.RotateYaw(-0.5f); } } if (this.Input.IsDown(KeyCode.KEYCODE_D)) { if (this.Input.IsDown(KeyCode.KEYCODE_LSHIFT)) { camera.MoveRight(0.01f); } else { camera.RotateYaw(0.5f); } } if (this.Input.IsDown(KeyCode.KEYCODE_UP)) { camera.AdjustPitch(-0.5f); } if (this.Input.IsDown(KeyCode.KEYCODE_DOWN)) { camera.AdjustPitch(0.5f); } if (this.Input.IsDown(KeyCode.KEYCODE_LEFT)) { camera.MoveRight(-0.01f); } if (this.Input.IsDown(KeyCode.KEYCODE_RIGHT)) { camera.MoveRight(0.01f); } }