protected override void Update(GameTime gameTime) { // Allows the game to exit if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) { this.Exit(); } // Allow the user to press 'R' to reset the collision demo. if (Keyboard.GetState().IsKeyDown(Keys.R)) { Reset(); } base.Update(gameTime); // Apply all the collisions. This is done after the base update so all of the objects have been moved to their new locations for this frame before we collide them. _collisionManager.ApplyCollisions(gameTime.ElapsedGameTime); }