Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Oct 28, 2005, 9:44:57 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: heavy ParticleEmission from the Bullets

@patrick: i think, this is what you wanted me to do…

File:
1 edited

Legend:

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

    r5441 r5443  
    138138  if (target != NULL)
    139139  {
    140     pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*100.0 + VECTOR_RAND(20)
     140    pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*100.0 + VECTOR_RAND(13)
    141141            /*target->getAbsCoor() - this->getAbsCoor()*/)*.5);//this->getVelocity());
    142142  }
     
    147147  pj->setAbsCoor(this->getEmissionPoint());
    148148  pj->setAbsDir(this->getAbsDir());
    149 
    150   State::getWorldEntityList()->add(pj);
     149  pj->activate();
    151150}
    152151
Note: See TracChangeset for help on using the changeset viewer.