Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10340 in orxonox.OLD for trunk/src/world_entities


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

got gravity and no banking anymore

Location:
trunk/src/world_entities/creatures
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • 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.