#How to get window borders in world coordinates?

1 messages · Page 1 of 1 (latest)

keen sphinx
#

So like the title, I just need to get where the edges of the screen are in world coordinates.
So for left for example something like -window.width() / 2 except thats in pixels and doesnt consider camera position.

dusty rain
#

Aren't world coordinates measured from the top-left, and camera coordinates from the center of the window?

keen sphinx
#

I dont really know 😅

dusty rain
#

I'm pretty sure they are, that would make the left edge x = 0 and the right one window.width().

What do you need exactly? Distance from the where the camera is pointing? For that you should check the Transform of your camera