Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10340 in orxonox.OLD


Ignore:
Timestamp:
Jan 24, 2007, 5:32:31 PM (17 years ago)
Author:
patrick
Message:

got gravity and no banking anymore

Location:
trunk/src
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/game_world.cc

    r10319 r10340  
    312312  PNode::getNullParent()->updateNode(0.01);
    313313
     314  bool bNoDraw = true;
    314315
    315316  while( this->bRunning) /* @todo implement pause */
     
    342343    this->update ();
    343344    /* draw everything */
    344     this->display ();
    345 
     345    if( bNoDraw)
     346      this->display ();
     347
     348    bNoDraw= !bNoDraw;
    346349  }
    347350
  • trunk/src/world_entities/creatures/fps_player.cc

    r10331 r10340  
    129129    wpRight->setName("testGun Right");
    130130    this->addWeapon(wpRight,1, 0);
    131 
    132     this->aimingSystem = new AimingSystem(this);
    133131    wpRight->addChild(this->aimingSystem);
    134132
    135133    this->toList( OM_PLAYERS );
    136134  }
     135
     136  this->aimingSystem = new AimingSystem(this);
    137137
    138138
     
    242242
    243243
    244 //     if( this->aimingSystem != NULL)
    245 //     {
    246 //       this->aimingSystem->toList(OM_GROUP_01);
    247 //       this->aimingSystem->setParent(&this->cameraNode);
    248 //   //     this->aimingSystem->setParentMode(PNODE_ROTATE_AND_MOVE);
    249 //       this->aimingSystem->setRelDir(Quaternion(M_PI_4*-0.58f, Vector(0,0,1)));
    250 //       this->aimingSystem->setRelCoor(0, -1, -1);
    251 //     }
     244    if( this->aimingSystem != NULL)
     245    {
     246      this->aimingSystem->toList(OM_GROUP_01);
     247      this->aimingSystem->setParent(&this->cameraNode);
     248  //     this->aimingSystem->setParentMode(PNODE_ROTATE_AND_MOVE);
     249      this->aimingSystem->setRelDir(Quaternion(M_PI_4*-0.58f, Vector(0,0,1)));
     250      this->aimingSystem->setRelCoor(0, -1, -1);
     251    }
    252252
    253253
     
    302302    yMouse *= time ;
    303303
    304     heading -= xMouse;
    305     attitude-= yMouse;
     304    heading -= xMouse/5.;
     305    attitude-= yMouse/5.;
    306306
    307307
     
    373373
    374374  // physical falling of the player
    375   if( /*FIXME for testing*/ false && !this->isOnGround())
     375  if( !this->isOnGround())
    376376  {
    377377    this->fallVelocity += 300.0f * time;
Note: See TracChangeset for help on using the changeset viewer.