public void resetPositionOnCollision(Rect rect) {
//		Helper.log(this.getClass().getName() + ": resetPositionOnCollision()");
//		Helper.log("xCollision: " + xCollision + " yCollision: " + yCollision);

		boolean movedUp = false;
		boolean movedDown = false;
		boolean movedLeft = false;
		boolean movedRight = false;

		if (y - prevY > 0) {
			movedDown = true;
		} else if (y - prevY < 0) {
			movedUp = true;
		}

		if (x - prevX > 0) {
			movedRight = true;
		} else if (x - prevX < 0) {
			movedLeft = true;
		}

		if (movedUp) {
			y = rect.bottom + 1;
		} else if (movedDown) {
			y = rect.top - height - 1;
		}

		if (movedRight) {
			x = rect.left - width - 1;
		} else if (movedLeft){
			x = rect.right + 1;
		}	
	}