Isometric issues

I have a little project, I am rendering paths over an isometric map using:

		xOffset = GameMap.tileWidth * GameMap.unitScale;
		yOffset = GameMap.tileHeight * GameMap.unitScale;

public static Vector2 orthToIso(float x, float y) {
		float drawingPosX = x * xOffset / 2 + y * xOffset / 2;
		float drawingPosY = y * yOffset / 2 - x * yOffset / 2;
		return new Vector2(drawingPosX, drawingPosY);
	}

This works great, the issue I have is being able to have a path go to the tile the mouse/touch is over

the mouse/touch position is going to be translated to iso via the above as part of the render loop. What I need help with is offseting the above code so that when the orth->iso kicks in, it lines up…

I hope this makes sense :slight_smile: