Hi gianni,

The solver I have generates positions and rotations for the object to move at 
runtime. So I can not set all positions and rotations when the animation 
starts. In case of using the osgAnimation library, how could I append new 
positions and rotations at runtime?

Err, I wonder, if you have something else calculating positions and rotations at runtime, why do you want to use osgAnimation or a callback at all? Just set your graphical object's transform to the new values and you're done...

osgAnimation or callbacks will be useful if you have a sequence of precalculated positions/orientations for each frame of animation, and then you want at runtime to move through the sequence and set the current position/orientation. Or if you want to calculate the current position yourself on the fly. But if you have a separate system calculating the position/orientation, then just set the graphical object's transform to that new value directly.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to