I am trying to make a targeting system for a turn by turn game, i want to create a widget that follows the on screen position to use the “on drag enter” override to determine wich ennemy is targeted by the player, but i don’t know why all my targeting widgets are off.
I suspect the problem is in the maths.
Screen One shows the overlay where i add my targeting widget as child
Screen Two shows the targeting widget logic for the interpolation
Screen Three is the in game result, the pale yellow squares are my targeting widgets, as you can see they are not over the place holder ennemies (the tall rectancgles) as i would want them to.