Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DarkSector/1084692 to your computer and use it in GitHub Desktop.
Save DarkSector/1084692 to your computer and use it in GitHub Desktop.
//create entities
Ogre::Entity* ent1 = mSceneMgr->createEntity("Ogre1","ogrehead.mesh");
Ogre::Entity* ent2 = mSceneMgr->createEntity("Ninja1","ninja.mesh");
//create nodes
Ogre::SceneNode* childnode1 = mSceneMgr->createSceneNode("Node1");
Ogre::SceneNode* childnode2 = mSceneMgr->createSceneNode("Node2");
//attach to RSN
mSceneMgr->GetRootSceneNode()->addChild(childnode1);
childnode1->attachObject(ent1);
childnode1->addChild(childnode2);
childnode2->attachObject(ent2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment