Hi,
I try to understand and modify osg example "osganimationmakepath".
I want to realize a simple path like the figure.
I've the keyframes
keys->push_back(osgAnimation::Vec3CubicBezierKeyframe(0,
osgAnimation::Vec3CubicBezier(v[0],v[1],v[1])
));
keys->push_back(osgAnimation::Vec3CubicBezierKeyframe(5,
osgAnimation::Vec3CubicBezier(v[2],v[1],v[1])
));
keys->push_back(osgAnimation::Vec3CubicBezierKeyframe(10,
osgAnimation::Vec3CubicBezier(v[3])
));
with:
v[0] = osg::Vec3( 0, 0, 0);
v[1] = osg::Vec3(0, 0, 20);
v[2] = osg::Vec3(20, 0, 20);
v[3] = osg::Vec3(40, 0, 20);where v[0] = P0 v[2] = P1 v[3] = P3 and v[1] is the control point P3 The curve part works fine, but when the object arrives on point P1 it doesn't move to P2 but it come back to P1 and then goes to P2. Why??? Thank you! Cheers, daniele ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29623#29623
<<attachment: prova.jpg>>
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

