Re: [osg-users] 【NEWBIE】Question about osg::MatrixTransform::getMatrix().getTrans() and getRotate()

2017-05-06 Thread Wojciech Lewandowski
Hi Jiechang, I am not sure I am able to pinpoint your problem. I see some weak spots but I am not sure if those are the true causes of your problem. And don't want to give wrong clues. Can you write short repro program which demos your problem ? I may then fix it and send you back. To learn you

Re: 【NEWBIE】Question about osg::MatrixTransform::getMatrix().getTrans() and getRotate()

2017-05-06 Thread Jiechang Guo
Hi Wojtek, First, Thank you very much for your detailed reply. 1. It's my mistake to say rotation around Y axis, I always think the z axis is actually the y axis. 2. The origin variable is osg::Matrix origin = model1->getMatrix(); I update this variable everytime when I translate or rotate the