Re: [osg-users] Question about setting speed/acceleration with AnimationPath

2011-06-15 Thread Mohamed Alji
Hi Dat, You can use Ease Motion functions. Maybe you can look at the example osgAnimationEaseMotion on osg. please keep me informed, I am kind of working on that. Thank you! Mohamed ALJI -- Read this topic online here:

Re: [osg-users] Question about setting speed/acceleration with AnimationPath

2010-12-03 Thread Robert Osfield
Hi Dat, The AnimationPath assumes a constant speed between each control point and animates accordingly. I guess it shouldn't be be possible to come up with the maths so that one assumes a constant acceleration between control points and then integrates to get the actual position at a given time.

Re: [osg-users] Question about setting speed/acceleration with AnimationPath

2010-12-03 Thread Nguyen Tien Dat
Dear Robert, Thank you very much for your answer. I'll manually move the object along the line by using the time between frames to compute speed and location then. Best, Dat On Fri, Dec 3, 2010 at 3:13 AM, Robert Osfield robert.osfi...@gmail.com wrote: Hi Dat, The AnimationPath assumes a

[osg-users] Question about setting speed/acceleration with AnimationPath

2010-12-02 Thread Nguyen Tien Dat
Dear all, I need to move an object along a line with the speed of 1m/s. The object starts from stationary (0m/s). I use AnimationPath like this: osg::AnimationPath* animationPath = new osg::AnimationPath; animationPath-setLoopMode(osg::AnimationPath::NO_LOOPING);