Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 11, 2007, 10:44:18 AM (17 years ago)
Author:
nicolasc
Message:

added some models, to proof that it really works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutorial/Tutorial/src/main.cpp

    r35 r36  
    4747        // add tutorial code here:
    4848        // ...
     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
    4958
    5059    }
Note: See TracChangeset for help on using the changeset viewer.