[osg-users] [3rdparty] How to change camera's yaw and pitch, and move front, back and sideways according to that?

Rodrigo Dias rodrigo1406 at gmail.com
Wed Jan 30 16:43:26 PST 2019


I want to change the camera direction with the mouse, and position with the keyboard. I've found an example on how to change the position, but still couldn't find anything explaining how to change the direction (and not sure if the position will change correctly when the direction changes). All I find is "take a look at the manipulator source code, it will give inspiration" etc. But I just don't get how can I implement that from the source code I saw.

Considering this is such a trivial task, why is it virtually impossible to find a simple source code showing how it's done?

Thanks,
Rodrigo

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







More information about the osg-users mailing list