Hi, 2008/12/17 olfat ibrahim <[email protected]>
> > > > --- On Wed, 12/17/08, olfat ibrahim <[email protected]> wrote: > > > From: olfat ibrahim <[email protected]> > > Subject: my current position > > To: "OSG" <[email protected]> > > Date: Wednesday, December 17, 2008, 9:01 AM > > i am using keyswitchManipulator : > > > > i need to print my current location while iam driving in > > the scene : > > > > i tried the functions : > > > > keyswitchManipulatorL->getMatrix() > > viewer.getCamera()->getViewMatrixAsLookAt(eye, center, > > up) eye is camera position. > > > cameraL->getViewMatrixAsLookAt(eye, center, up) > > > > all of those does not get me my moving statuse . > > i need my x,y,z and h,p,r current position ; > > Are you sure you get the position each frame ? because theses functions will give you vector copy, so if you don't get them each frame, they will not change. What do you meen by h,r,p ? second camera position ? Vincent. > > is there a function should i call to get me what i need ? > > > > thanks > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

