Problem with animating camera and node at the same time
Posted: Tue Sep 27, 2005 6:30 pm
firstly, the code:
now some explains: my model moves, my camera target has the same coordinates as model, and my camera is 500 points above the model - it can move only in X and Z planes. Now up to the point, how to make those 3 things move at the same time ??
Code: Select all
ISceneNodeAnimator* przejdz = smgr->createFlyStraightAnimator(akt_poz, idz_do, odleglosc*10,0);
rydzyk->addAnimator(przejdz);
przejdz->drop();
camera->setTarget(vector3df(rydzyk->getAbsolutePosition().X,0,rydzyk->getAbsolutePosition().Z-90));
camera->setPosition(vector3df(rydzyk->getAbsolutePosition().X,300,rydzyk->getAbsolutePosition().Z-90));