Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4422 in orxonox.OLD


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

orxonox/trunk: work on pilot node continued

Location:
orxonox/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/coord/pilot_node.cc

    r4418 r4422  
    3232{
    3333   this->setClassID(CL_PILOT_PARENT, "PilotNode");
     34
     35   
    3436}
    3537
     
    4850void PilotNode::command(Command* cmd)
    4951{
    50   printf("Mouse moved by %d,%d to (%d,%d)\n",
    51          cmd->xrel, cmd->yrel,
    52          cmd->x, cmd->y);
     52
    5353
    5454  //this->setAbsDir(Quaternion(M_PI * 0.4, Vector(1, 0, 0)));
     
    5858void PilotNode::process( const Event &event)
    5959{
    60 
     60  PRINTF(0)("Mouse moved by %d,%d to (%d,%d)\n", event.xRel, event.yRel,
     61         event.x, event.y);
    6162}
  • 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.