@Override
	public void processEntity(Entity entity) {
		Spatial spatialComponent = entity.getComponent(Spatial.class, true);
		/**
		 * It is assumed, as everywhere (unless explicitly stated) that top left
		 * is 0,0. We check if either the center x location of the entity is
		 * within the camera's boundaries, and if it is we move the viewport.
		 * This is the same for the y value
		 **/
		if (spatialComponent.x + spatialComponent.width / 2 > boundaries.x &&
				spatialComponent.x + spatialComponent.width / 2 < boundaries.x + boundaries.width)
			viewport.setCenterX(spatialComponent.x + spatialComponent.width / 2);
		if (spatialComponent.y + spatialComponent.height / 2 > boundaries.y
				&& spatialComponent.y + spatialComponent.height / 2 < boundaries.y + boundaries.height)
			viewport.setCenterY(spatialComponent.y + spatialComponent.height / 2);
	}