ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Help/Support (https://www.esoui.com/forums/forumdisplay.php?f=164)
-   -   MapPin XY to world XYZ (https://www.esoui.com/forums/showthread.php?t=10030)

ThatOneGuy789 12/31/21 02:39 AM

MapPin XY to world XYZ
 
is there anyway to convert the XY to world XYZ?

Masteroshi430 12/31/21 05:26 AM

Quote:

Originally Posted by ThatOneGuy789 (Post 45130)
is there anyway to convert the XY to world XYZ?

You can't guess the Z , set it to 0...

votan 12/31/21 05:43 AM

LibGPS has that feature.

ThatOneGuy789 01/01/22 01:24 PM

Quote:

Originally Posted by votan (Post 45132)
LibGPS has that feature.

what im wanting to do is if i set a player waypoint on the map it will return the X, Y, Z of that waypoint in the world space

i use GetMapPlayerWaypoint() to get that set waypoint which returns a normalized XY but from my testing Y is actually Z and not Y so im not understanding the conversion there.

Masteroshi430 01/01/22 04:44 PM

Quote:

Originally Posted by ThatOneGuy789 (Post 45136)
what im wanting to do is if i set a player waypoint on the map it will return the X, Y, Z of that waypoint in the world space

i use GetMapPlayerWaypoint() to get that set waypoint which returns a normalized XY but from my testing Y is actually Z and not Y so im not understanding the conversion there.

Why not
local x, y = gps:LocalToGlobal(GetMapPlayerWaypoint())
local z = 0
You can't guess the Z if you don't have the data anyway...

Baertram 01/02/22 08:20 AM

Afaik a waypoint got no z info as it is just a point on the map, not respecting any height. Just x (left) and y (top) cordinates where the point was set.


All times are GMT -6. The time now is 07:42 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI