this is the code i have used
Code: Select all
scene::ISceneNode* n = smgr->addSphereSceneNode();
if (n)
{
n->setMaterialTexture(0, driver->getTexture("../../media/axe.jpg"));
n->setMaterialFlag(video::EMF_LIGHTING, false);
n->setScale(core::vector3df (7,7,7));
scene::ISceneNodeAnimator* anim =
smgr->createFollowSplineAnimator(s32(0), points, 0.2f, 0.3f, true, true);
core::array<core::vector3df> points;
//points.push_back(core::vector3df(X,Y,Z));
points.push_back(core::vector3df(-220,0,0));
points.push_back(core::vector3df(100,0,0));
points.push_back(core::vector3df(100,0,180));
points.push_back(core::vector3df(-100,0,180));
points.push_back(core::vector3df(-100,0,0));
points.push_back(core::vector3df(-220,0,0));
points.push_back(core::vector3df(-220,0,0));
points.push_back(core::vector3df(100,0,0));
points.push_back(core::vector3df(100,0,-180));
points.push_back(core::vector3df(-100,0,-180));
points.push_back(core::vector3df(-100,0,0));
points.push_back(core::vector3df(-220,0,0));
if (anim)
{
death1->addAnimator(anim);
anim->drop();
}
}
is this sort ove code even able to move things in such a way or have a missed something important. please could you give em some clue as to what the code needs to move,