11 node from 1 mesh

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
bapi
Posts: 33
Joined: Fri Apr 04, 2008 1:57 pm
Location: India
Contact:

11 node from 1 mesh

Post by bapi »

how can i create Eleven object from one mesh?
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

use the same mesh for each of the 11 nodes....

Code: Select all

scene::IMesh* mesh = smgr->getMesh("meshpath.ext");
for (u32 i = 0 ; i < 11 ; i++)
  smgr->addMeshSceneNode(mesh);
Image Image Image
Post Reply