Paul Martz wrote:
Have you looked at transform nodes other than MatrixTransform? Either
osgSim::DOFTransform or osg::PositionAttitudeTransform lets you set a
"pivot point". I've seen this in the code but never used it. But it
sounds like it would make it easier for you to compose the
transformation that you need.
Hi, Oren,
osgSim::DOFTransform is exactly what you need here. What you'll want to
do is set the "inverse put" matrix to the transform that puts the
articulated part at the origin, and set the "put" matrix to the
transform that will put it back. The position and orientation of the
articulated part itself are specified by Vec3's (heading, pitch, roll
for orientation). You can either use the setCurrent* methods to do the
animation yourself, or the setIncrement* methods to have the animation
done for you during the update traversal.
--"J"
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org