Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4422 in orxonox.OLD for orxonox/trunk/src/story_entities


Ignore:
Timestamp:
May 31, 2005, 6:47:39 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: work on pilot node continued

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r4420 r4422  
    514514void World::loadDebugWorld(int worldID)
    515515{
    516   printf("ajsdflkajs;dlfaj;slfja;lsjf;lajsf;la;sdfkja;lskdjfashdfklajshdflkjasdfh\n");
    517516  /*monitor progress*/
    518517  this->glmis->step();
     
    610609        this->eventHandler->subscribe(this->localPlayer, ES_GAME, KeyMapper::PEV_PREVIOUS_WEAPON);
    611610
    612 
     611        /*
    613612        Field* testField = new Gravity();
    614613        testField->setMagnitude(10);
    615614        new PhysicsConnection(this->localPlayer, testField);
     615        */
    616616
    617617        // bind camera
     
    641641        this->pilotNode->addChild(this->localPlayer);
    642642        this->pilotNode->addChild(this->localCamera);
     643        this->localCamera->lookAt(this->localPlayer);
     644
     645        this->eventHandler->subscribe(this->pilotNode, ES_GAME, EV_MOUSE_MOTION);
     646
    643647        // bind input
    644648        Orxonox *orx = Orxonox::getInstance ();
Note: See TracChangeset for help on using the changeset viewer.