Hi,

I am new to OSG and am attempting to better understand ControlPoint.  I have a 
situation where I need to rotate an object around a "pivot point"

I know that if I were doing a matrix transformation, I would perform a 
translation, then a rotation and then the opposite translation.

But, I don't understand how this is represented in a ControlPoint that I insert 
into an AnimationPath.

In my case, I know that I am rotating the object about the point (0,26.45,-22.3)

And that I am attempting to rotate aorund the X Axis (1,0,0)

But if I use a Control point like the following, I get a result that I can not 
make sense of.

        osg::AnimationPath::ControlPoint LoadRollerC1(osg::Vec3(0,26.45,-22.3), 
osg::Quat(osg::PI /8.0f, osg::Vec3(1,0,0)));     

Do you have any advise.  Thank you in advance.


Tim

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to