[osg-users] How to get the orientation of 3d object?

Jiechang Guo 151220010 at hdu.edu.cn
Mon Apr 10 07:14:37 PDT 2017


I am dealing with a task of orienting and positioning one object relative to another(the same object as the manipulated one,but has different position and orientation). And when the task is finished, I wanna  compute the deviation(both position and orienting). For the orientation, I want to get the angle and axis.

I'm so confused with the Local coordinate and World coordinate in OSG. 

I know maybe I should define a vector  under the object local coordinate and rotate translate the vector as well as the object is being manipulated.And do some math with the vector under the world coordinate to get the angle and axis. 

Can someone give me some advice?

Thank you! Thanks a lot!

Jiechang :D

Read this topic online here:

More information about the osg-users mailing list