How do games like diablo, dota, league of legends handle screen space coordinate of mouse to set character positions in game?
24. Červen 2024 v 18:10
in dota 2 and warcraft 3 u can even place the camera horizontally on the ground and the movement still accurately knows where u clicked, how is this possible?
my understanding is the normalized screen coords go from [-1,1] in both x and y directions and usually there's a perspective matrix which is to make things appear like they have depth by making vanishing points and a view matrix to move the camera and/or rotate it.