Code: Select all
scene::ISceneNodeAnimator *anim = smgr->createFlyStraightAnimator(core::vector3df(camera->getPosition()),
core::vector3df(camera->getPosition().X,-1,camera->getPosition().Z-(10 * counter)), 500*counter, false);
camera->addAnimator(anim);
while (anim->hasFinished() == false)
{
cout<<anim->hasFinished();
}
anim->drop();