custom animators

A forum to store posts deemed exceptionally wise and useful
Post Reply
qwe
Posts: 112
Joined: Sun Dec 28, 2003 12:54 am
Location: Oregon, USA

custom animators

Post by qwe »

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.
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

sounds cool..even though I'm not sure what its for..

once I learn the code it might be useful though :roll:
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

It would be cool if you post a tut on how to compile Irrlicht with your new code. Also a brief tut on how to use the animator.

cheers!

ps. Oh yes, great job! :D
Image
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

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();
Post Reply