Well, my programm is pretty much like the osgsimulation example. But instead of 
a aircraft which flies a constant route I use a model which flies an arbitrary 
trajectory.

For the positioning of the model I just use makeTranslate with the new X,Y,Z 
coordinates, which works as expected.

Now I try to rotate my model that way that it heads towards the direction it is 
"flying". For the rotation I use makeRotate with the new position and the 
previous position (taken from here 
(http://forum.openscenegraph.org/viewtopic.php?p=16587#16587)).

But somehow it works not as expected. The model always looks somewhere else. So 
I suppose either I use the makeRotate in a wrong way or the rotation somehow 
depends on the position within the EllipsoidModel (maybe some conversion from 
world to local coordinates or vice versa?)

Any ideas?

Michael

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=18856#18856





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to