Hi, I've these points:
v[0] = osg::Vec3d( -19, 0, -60);
v[1] = osg::Vec3d( -20, 0, -102);
v[2] = osg::Vec3d( -22, 0, -145);
v[3] = osg::Vec3d( 20, 0, -142);
v[4] = osg::Vec3d( 63, 0, -139);
v[5] = osg::Vec3d( 145, 0, -138);
Points v[1], v[2], v[3] describes a curve and it works.
Why when the ball arrives on point v[4] stops????
I use the keyframes:
keys->push_back(osgAnimation::Vec3CubicBezierKeyframe(0,
osgAnimation::Vec3CubicBezier(v[0])));
keys->push_back(osgAnimation::Vec3CubicBezierKeyframe(3,
osgAnimation::Vec3CubicBezier(v[1],v[2],v[3])));
keys->push_back(osgAnimation::Vec3CubicBezierKeyframe(6,
osgAnimation::Vec3CubicBezier(v[4] ) ));
keys->push_back(osgAnimation::Vec3CubicBezierKeyframe(9,
osgAnimation::Vec3CubicBezier( v[5] )));
Where's the error??
Please help me!!
thanks!
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29966#29966
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org