Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 25, 2005, 2:25:27 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: little patch for the pNode System. now all Vectors are passed as const Vector& … and are also handled as vectors and not pointers internally

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/particleEngine/src/world_entities/player.cc

    r3881 r3957  
    188188  //orthDirection = orthDirection.cross (direction);
    189189
    190   if( this->bUp && this->getRelCoor()->x < 20)
     190  if( this->bUp && this->getRelCoor().x < 20)
    191191    accel = accel+(direction*acceleration);
    192   if( this->bDown && this->getRelCoor()->x > -5)
     192  if( this->bDown && this->getRelCoor().x > -5)
    193193    accel = accel-(direction*acceleration);
    194   if( this->bLeft &&  TrackManager::getInstance()->getWidth() > -this->getRelCoor()->z*2)
     194  if( this->bLeft &&  TrackManager::getInstance()->getWidth() > -this->getRelCoor().z*2)
    195195    accel = accel - (orthDirection*acceleration);
    196   if( this->bRight &&  TrackManager::getInstance()->getWidth() > this->getRelCoor()->z*2)
     196  if( this->bRight &&  TrackManager::getInstance()->getWidth() > this->getRelCoor().z*2)
    197197    accel = accel + (orthDirection*acceleration);
    198198  if( this->bAscend )
Note: See TracChangeset for help on using the changeset viewer.