Hi Enrico,

yes that's quite easy you can get this information from the Navigator class.

Andreas

// mgr is the SimpleSceneManager
Navigator *nav = mgr->getNavigator();
Pnt3f from = nav->getFrom();
Pnt3f at = nav->getAt();
Real32 distance = from.dist(at);

hi all,
i have quite a simple question 4 you...
i have an app using simplescenemanager to handle a scene,
and i need to know the distance from the camera and the point around which it is rotating (that is eventually the point picked with a mouse click).
Where do i found that info?

thx enrico



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users




--
Andreas Zieringer       [EMAIL PROTECTED]
Fraunhofer IGD - A4     phone +49 (0)6151 155 289
Fraunhoferstr. 5        fax   +49 (0)6151 155 196
D-64283 Darmstadt       www.igd.fhg.de/www/igd-a4


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to