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.
-
ozrinaut
- Posts: 28
- Joined: Tue Sep 13, 2005 5:09 pm
Post
by ozrinaut »
In the "collison detection tutorial" of Irrlicht, there are 3 fairy nodes summoned:
Code: Select all
node = smgr->addAnimatedMeshSceneNode(faerie);
node->setPosition(core::vector3df(-70,0,-90));
node->setMD2Animation(scene::EMAT_RUN);
node->getMaterial(0) = material;
node = smgr->addAnimatedMeshSceneNode(faerie);
node->setPosition(core::vector3df(-70,0,-30));
node->setMD2Animation(scene::EMAT_SALUTE);
node->getMaterial(0) = material;
node = smgr->addAnimatedMeshSceneNode(faerie);
node->setPosition(core::vector3df(-70,0,-60));
node->setMD2Animation(scene::EMAT_JUMP);
node->getMaterial(0) = material;
How then do I get a specific node to say change the texture or change a camera atatched.
Thanks for your time!
-
guest101010
Post
by guest101010 »
bump
-
Acki
- Posts: 3496
- Joined: Tue Jun 29, 2004 12:04 am
- Location: Nobody's Place (Venlo NL)
-
Contact:
Post
by Acki »
define a pointer for each node...
IMeshSceneNode* node1 = ...
IMeshSceneNode* node2 = ...
IMeshSceneNode* node3 = ...
or give every node it's own ID, (node->setID(1))
and get the pointer for the node over the ID