Author
Topic: project location - in 3d space? (Read 855 times)

i have seen the example but am trying to equate the Location data to move a player character in 3d space - but am having a lot of difficulty.

i'm sure its something basic -

to test:

i have taken a screen grab off google maps - measured the max and min lng/lat and put them in the relevant boxes,

i have placed it as a texture on a plane and placed a cylinder as the 'player' on the plane. Moving it about i have measured the co-ordinates for the edges of the plane in 3d space as well as its width.

i have then sent some mock GPS data to the projectToMap - and then taken the projected X/Y to create a vector which i send to a 'moveTo' to move the player to the position on the map