Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 30, 2007, 6:22:22 PM (17 years ago)
Author:
rgrieder
Message:
 
Location:
code/branches/main_reto/src
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/main_reto/src/RunManager.cpp

    r123 r126  
    1111mInputManager(0), mMouse(0), mKeyboard(0), mJoy(0)
    1212{
    13         // create new scene
     13        // create new SceneManger
    1414        mSceneMgr = mOgre->getRoot()->createSceneManager(ST_GENERIC,"mScene");
     15
     16
     17        // create various objects
     18        // background scene
    1519        mScene = new OrxonoxScene(mSceneMgr);
    16 
    1720        // create camera and viewport
    1821        createCamera();
    1922        createViewports();
    20 
    2123        mScene->initialise();
     24
     25        // create a steerable SceneNode for the spaceship to be attached to
     26        /*mShipNode = new SteerableNode(mSceneMgr, "shipNode");
     27        mShipNode->setPosition(Vector3(20, 20, 20));
     28        mSceneMgr->getRootSceneNode()->addChild(mShipNode);*/
     29
     30        // spaceship
     31        /*mShip = static_cast<OrxonoxShip*>(mSceneMgr->createEntity("ship", "ninja.mesh"));
     32        mShipNode->attachObject(mShip);*/
    2233
    2334
     
    6576        if (mScene)
    6677                delete mScene;
     78
     79        /*if (mShipNode)
     80                delete mShipNode;
     81
     82        if (mShip)
     83                delete mShip;*/
    6784}
    6885
Note: See TracChangeset for help on using the changeset viewer.