Changeset 57 for code/branches/tutorial
- Timestamp:
- Oct 16, 2007, 11:03:25 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial/Tutorial/src/main.cpp
r36 r57 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 58 49 59 50 }
Note: See TracChangeset
for help on using the changeset viewer.