Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 18, 2007, 10:05:48 PM (17 years ago)
Author:
nicolasc
Message:

fixed the deviation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/weapons/disruptor.cc

    r10719 r10722  
    156156
    157157//   pj->setVelocity(this->getAbsDir().apply(Vector(1,0,0))*130 + VECTOR_RAND(1));
    158   pj->setVelocity(this->getAbsDir().apply(tmp.getNormalized())*130 + VECTOR_RAND(1));
     158  pj->setVelocity((tmp.getNormalized())*130 + VECTOR_RAND(1));
    159159
    160160  pj->setAbsCoor(this->emissionPoint[this->activeBarrel]->getAbsCoor());
    161 //   pj->setAbsDir(this->getAbsDir());
     161  pj->setAbsDir(this->getAbsDir());
    162162  pj->activate();
    163163
    164164
    165165  this->shootAnim[0][0]->replay();
    166 
    167 
    168166}
    169167
Note: See TracChangeset for help on using the changeset viewer.