playMaker

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

benflock

  • Playmaker Newbie
  • *
  • Posts: 15
project location - in 3d space?
« on: May 12, 2014, 11:23:58 AM »
hello

playing around with Location and project location to map functions

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

however.....

the projected co-ords, especially the Y are wildly off

is there anything i am obviously doing wrong?

thanks a lot

ben