public boolean checkBorders()
	{
		double up = -owner.yC / owner.velocity.getY(), left = -owner.xC / owner.velocity.getX();	// danger of respective border
		double down = (logicHeight - owner.yC) / owner.velocity.getY(), right = (logicWidth - owner.xC) / owner.velocity.getX();
		
		boolean acted = false;	// whether anything was changed (return value for this method)
		
		if(Math.abs(up) < borderSafety)
		{
			destY = logicHeight;
			acted = true;
		}
		else if(Math.abs(down) < borderSafety)
		{
			destY = 0;
			acted = true;
		}
		if(Math.abs(left) < borderSafety)
		{
			destX = logicWidth;
			acted = true;
		}
		else if(Math.abs(right) < borderSafety)
		{
			destX = 0;
			acted = true;
		}
		return acted;
	}