Author Topic: 3D coordinates on rotated object  (Read 2706 times)

Offline stonef

  • byte
  • *
  • Posts: 2
    • View Profile
3D coordinates on rotated object
« on: May 04, 2011, 05:30:35 am »
Hi, im trying to deevelop a game with this brilliant game engine for Android.
However im stuck at a quite early stage due to the fact that i can't
figure out how to get the coordinates on the object (the object is rotatable).

Iv'e imported a sphere shaped object in .3ds and with texture of a world map
it's supposed to be a globe. Now what i would like to do is to get
coordinates on the globe using touch. The problem is not getting the Z coordinate since
i can use mathematic for that, but it's how to get the coordinates depending on how
the object is rotated. (To make it easier to understand, my later on goal is to get the right longitude/latitude of the world by a touch event).

If you understand my situation and have any suggestion, I would love to here them. Thanks in advance

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: 3D coordinates on rotated object
« Reply #1 on: May 05, 2011, 05:22:21 pm »
The PolygonManager can give you the vertices transformed into world space if that helps.