Hello I just wonder! how can i add many nodes?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
gantz0
Posts: 13
Joined: Fri Apr 28, 2006 4:23 am

Hello I just wonder! how can i add many nodes?

Post by gantz0 »

I will make zombie game~

But i have Two problems.

I made mesh and added node~

like this~

IAnimatedMeshSceneNode* Wnode;
IAnimatedMesh* MonsterMesh = smgr->getMesh("x/monster.x");
IAnimatedMesh* CharMesh = smgr->getMesh("x/man.x");
Wnode = smgr->addAnimatedMeshSceneNode( MonsterMesh );
Wnode = smgr->addAnimatedMeshSceneNode( CharMesh );


But i don't know how can i know that i want to look for that i slected mesh in "Wnode"?
and How can i make many copied mesh? I'd like to see many zombies in my monitor.

Thank you for reading~
lazerblade
Posts: 194
Joined: Thu Mar 18, 2010 3:31 am
Contact:

Post by lazerblade »

You could try "Wnode->clone()":
http://irrlicht.sourceforge.net/docu/cl ... adbaec95cc

I *love* pointing people at the code documentation. I actually spent painful
hours searching documentation to find this and many other solutions. ;)
LazerBlade

When your mind is racing, make sure it's not racing in a circle.

3d game engine: http://sites.google.com/site/lazerbladegames/home/ray3d
lazerBlade blog: http://lazerbladegames.blogspot.com/
Post Reply