And I have array of positions following camera.
I use:
Code: Select all
ModelAnim = smgr->createFlyStraightAnimator(vector3df(leaderPosition[currentSlice]), vector3df(leaderPosition[currentSlice + 1]), 1000 / 30);
Model->addAnimator(ModelAnim);
ModelAnim->drop();
CameraAnim = smgr->createFlyStraightAnimator(vector3df(cameraPosition[currentSlice]), vector3df(cameraPosition[currentSlice + 1]), 1000 / 30);
camera->addAnimator(CameraAnim);
CameraAnim->drop();
My game working at ~45-50 FPS.
I already tryed to change array up to 50 positions per second - doesn't effect at all.
Is it some issues with createFlyStraightAnimator?