This is my code:
Code: Select all
for(int i=0; i<3;i++)
{
mShip = mSceneMgr->createEntity("myShip","razor.mesh");
mShipNode[i] = mSceneMgr->getRootSceneNode()->createChildSceneNode();
mShipNode[i]->attachObject(mShip);
}
//set position of ships
mShipNode[0]->setPosition(-100, 0, 0);
mShipNode[1]->setPosition( 0, 0, 0);
mShipNode[2]->setPosition( 0, 0,-100);Code: Select all
Entity* mShip;
SceneNode *mShipNode[3];I know I can do this in other 3D graphics packages to save on the total number of objects loaded in, I was just wondering if there's any [simple] way round it.
Again, I've just started using Ogre and have a basic understanding of C++ so if I've made a stupid mistake, please be gentle

