Changeset 36 for code/branches/tutorial/Tutorial/src
- Timestamp:
- Oct 11, 2007, 10:44:18 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial/Tutorial/src/main.cpp
r35 r36 47 47 // add tutorial code here: 48 48 // ... 49 mSceneMgr->setAmbientLight( ColourValue( 1, 1, 1 ) ); 50 Entity *ent1 = mSceneMgr->createEntity( "Robot", "robot.mesh" ); 51 SceneNode *node1 = mSceneMgr->getRootSceneNode()->createChildSceneNode( "RobotNode" ); 52 node1->attachObject( ent1 ); 53 54 Entity *ent2 = mSceneMgr->createEntity( "Robot2", "robot.mesh" ); 55 SceneNode *node2 = mSceneMgr->getRootSceneNode()->createChildSceneNode( "RobotNode2", Vector3( 50, 0, 0 ) ); 56 node2->attachObject( ent2 ); 57 49 58 50 59 }
Note: See TracChangeset
for help on using the changeset viewer.