okay... I wrote a new animator this morning. It's based on the FlyCircleAnimator but you can specify a vector3d angle that the circle is rotated on.
download here
comments would be appreciated.
custom animators
Why not just use the existing dummy transform to turn the fly circle animator on its side?
Code: Select all
// dummy transform puts light on its side
irr::scene::IDummyTransformationSceneNode* dummy = smgr->addDummyTransformationSceneNode();
dummy->getRelativeTransformationMatrix().setRotationDegrees(core::vector3df(30.f, 0.f, 0.f));
node = smgr->addLightSceneNode(dummy, core::vector3df(0,0,0),
video::SColorf(1.0f, 0.6f, 0.7f, 1.0f), 600.0f);
scene::ISceneNodeAnimator* anim = 0;
anim = smgr->createFlyCircleAnimator (core::vector3df(0,150,0),250.0f);
node->addAnimator(anim);
anim->drop();
