Hi
I have a simple question.
How to write a rotating 3d model and set speed of that "rotating animation". I think i don't have to make that animation in modeler :/.
I think about rotating animation with car chosing.Is here anyone who did never see a car changer in racing game?
"Rotate Animation" for racing game
How about:
It will rotate your car node on Y axis, and it must be what you want. Also you can tweak the speed or the rotation direction.
Code: Select all
ISceneNodeAnimator* ani=smgr->createRotationAnimator(vector3df(0,1,0));
carNode->addAnimator(ani);
ani->drop();
-
- Posts: 18
- Joined: Sun Jan 24, 2010 6:13 pm
Thanx for reply
your code lines seems to be good but i tried to paste them and when i compiled it the program did and error in console and crashed.
BTW I'm editing a "Hello World" demo and your "CarNode" is just node from line
Btw i can upload a code if you want
your code lines seems to be good but i tried to paste them and when i compiled it the program did and error in console and crashed.
BTW I'm editing a "Hello World" demo and your "CarNode" is just node from line
Any suggestions / help ?IAnimatedMeshSceneNode* node = smgr -> addAnimatedMeshSceneNode( mesh ); //mesh is model of car
Btw i can upload a code if you want
-
- Posts: 18
- Joined: Sun Jan 24, 2010 6:13 pm
Well, as hybrid mentioned - we really need to see the code to help.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm