Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Mar 30, 2005, 5:20:21 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: glmenu progressbar corrected, pnode modifications

Location:
orxonox/trunk/src/world_entities
Files:
3 edited

Legend:

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

    r3672 r3675  
    178178  //orthDirection = orthDirection.cross (direction);
    179179
    180   if( this->bUp && this->getRelCoor().x < 20)
     180  if( this->bUp && this->getRelCoor()->x < 20)
    181181    accel = accel+(direction*acceleration);
    182   if( this->bDown && this->getRelCoor().x > -5)
     182  if( this->bDown && this->getRelCoor()->x > -5)
    183183    accel = accel-(direction*acceleration);
    184   if( this->bLeft &&  TrackManager::getInstance()->getWidth() > -this->getRelCoor().z*2)
     184  if( this->bLeft &&  TrackManager::getInstance()->getWidth() > -this->getRelCoor()->z*2)
    185185    accel = accel - (orthDirection*acceleration);
    186   if( this->bRight &&  TrackManager::getInstance()->getWidth() > this->getRelCoor().z*2)
     186  if( this->bRight &&  TrackManager::getInstance()->getWidth() > this->getRelCoor()->z*2)
    187187    accel = accel + (orthDirection*acceleration);
    188188  if( this->bAscend )
  • orxonox/trunk/src/world_entities/projectile.cc

    r3672 r3675  
    101101  if( this->ttl < this->currentLifeTime)
    102102    {
    103       *this->flightDirection = *this->flightDirection * this->speed;
     103      *this->flightDirection = *this->flightDirection * this->speed * time;
    104104      this->shiftCoor(this->flightDirection);
    105105      this->flightDirection->debug();
  • orxonox/trunk/src/world_entities/test_gun.cc

    r3670 r3675  
    8484  //printf("TestGun::fire() - firing weapon now ---------------------------\n");
    8585  Projectile* pj = new Projectile();
     86
    8687  Vector* v = new Vector();
    8788  *v = this->getAbsCoor();
     
    9394  pj->setFlightDirection(q);
    9495  //pj->setSpeed(this->getSpeed() * 0.025);
     96
    9597
    9698
Note: See TracChangeset for help on using the changeset viewer.