Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5440 in orxonox.OLD for trunk/src/world_entities/weapons/turret.cc


Ignore:
Timestamp:
Oct 27, 2005, 10:56:58 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: Weapons update, Now one can really assign SlotCapabilities
Debug-redesign (small)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/turret.cc

    r5414 r5440  
    9797  this->setEmissionPoint(1.684, 0.472, 0);
    9898  //this->getProjectileFactory()->prepare(100);
    99 
    100 
    10199}
    102100
     
    140138  if (target != NULL)
    141139  {
    142     pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*100.0   /*target->getAbsCoor() - this->getAbsCoor()*/)*.5);//this->getVelocity());
     140    pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*100.0 + VECTOR_RAND(20)
     141            /*target->getAbsCoor() - this->getAbsCoor()*/)*.5);//this->getVelocity());
    143142  }
    144143  else
     
    148147  pj->setAbsCoor(this->getEmissionPoint());
    149148  pj->setAbsDir(this->getAbsDir());
     149
    150150  State::getWorldEntityList()->add(pj);
    151151}
    152 
    153152
    154153void Turret::destroy ()
Note: See TracChangeset for help on using the changeset viewer.