- Home /
Position to pixel coords from 2 points
Hi, I would like to create a 2D Map where the player can see his position(like a gps system). But how do I calculate the pixel position from the player position? I create everytime a new map, but I have two static points where I know they Player and pixel coordinations. Position 1: World Position: 330, -425 Pixel Position: 27,605
Position 2: World Position: 296, 162 Pixel Position: 87, 49
I searched a lot, but i couldnt find any help. So thank you very much for your answers!
Comment
Your answer
Follow this Question
Related Questions
Check the length of a line renderer? 2 Answers
Half a pixel? 0 Answers
screen position of element in layout 1 Answer
Camera rotation around player while following. 6 Answers
How to get pixel position when clicking an object ? 1 Answer