Page 1 of 1

addAnimator differs in 0.7?

Posted: Tue Oct 12, 2004 4:53 pm
by melon2004
is it just me, or something has changed from version 0.6 to 0.7 in Irrlicht engine with addAnimator() method?

In 0.6 version code like this worked as expected and all three nodes were rotating:

Code: Select all

anim = smgr->createRotationAnimator(core::vector3df(0,0.4,0));
node1->addAnimator(anim);
node2->addAnimator(anim);
node3->addAnimator(anim);
anim->drop();
After some time I had to return to my project - this time with 0.7 and I've noticed that this time only FIRST (node1) node is rotating. After changing code to

Code: Select all

anim = smgr->createRotationAnimator(core::vector3df(0,0.4,0));
node1->addAnimator(anim);
anim = smgr->createRotationAnimator(core::vector3df(0,0.4,0));
node2->addAnimator(anim);
anim = smgr->createRotationAnimator(core::vector3df(0,0.4,0));
node3->addAnimator(anim);
anim->drop();
it works back again, but that - of course - it is not "ellegant solution". Any ideas?

(IMPORTANT: I've changed computer and all software as well, so maybe that's the reason?)