3D coordinates on rotated object

Started by stonef, May 04, 2011, 05:30:35 AM

Previous topic - Next topic

stonef

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

EgonOlsen

The PolygonManager can give you the vertices transformed into world space if that helps.