Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4413 in orxonox.OLD for orxonox


Ignore:
Timestamp:
May 31, 2005, 1:14:04 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: fixed a player controller problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/player.cc

    r4412 r4413  
    236236    accel = accel -(direction*acceleration);
    237237  if( this->bLeft &&  TrackManager::getInstance()->getWidth() > -this->getRelCoor().z*2)
    238     accel = accel + (orthDirection*acceleration);
     238    accel = accel - (orthDirection*acceleration);
    239239  if( this->bRight &&  TrackManager::getInstance()->getWidth() > this->getRelCoor().z*2)
    240     accel = accel - (orthDirection*acceleration);
     240    accel = accel + (orthDirection*acceleration);
    241241  if( this->bAscend )
    242242  if( this->bDescend) {/* FIXME */} /* \todo up and down player movement */
     
    284284void Player::process(const Event &event)
    285285{
     286  PRINTF(0)("Player got command!!!!!!!!!!!!!!!!!\n");
    286287  if( event.type == KeyMapper::PEV_UP)
    287288    {
     
    294295  else if( event.type == KeyMapper::PEV_RIGHT)
    295296    {
     297      this->bRight= event.bPressed;
     298    }
     299  else if( event.type == KeyMapper::PEV_LEFT)
     300    {
    296301      this->bLeft = event.bPressed;
    297302    }
    298   else if( event.type == KeyMapper::PEV_LEFT)
    299     {
    300       this->bRight = event.bPressed;
    301     }
    302303  else if( event.type == KeyMapper::PEV_FIRE1)
    303304    {
Note: See TracChangeset for help on using the changeset viewer.