Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7302 in orxonox.OLD


Ignore:
Timestamp:
Apr 16, 2006, 8:07:11 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: particles emit much smoother now. Check out the Urban City Level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/particles/dot_emitter.cc

    r7193 r7302  
    3434*/
    3535DotEmitter::DotEmitter(float emissionRate, float velocity, float angle)
    36   : ParticleEmitter( emissionRate, velocity, angle)
     36    : ParticleEmitter( emissionRate, velocity, angle)
    3737{
    3838  this->init();
     
    4444*/
    4545DotEmitter::DotEmitter(const TiXmlElement* root)
    46   : ParticleEmitter()
     46    : ParticleEmitter()
    4747{
    4848  this->init();
    4949
    50    if (root != NULL)
    51      this->loadParams(root);
     50  if (root != NULL)
     51    this->loadParams(root);
    5252}
    5353
     
    8787    Quaternion moment = Quaternion(this->momentum + this->momentumRandom, randDir);
    8888
    89     this->getSystem()->addParticle(this->getAbsCoor(), velocityV, orient, moment);
     89    this->getSystem()->addParticle(this->getAbsCoor() + this->getVelocity()*.1*rand()/RAND_MAX,
     90                                   velocityV, orient, moment);
    9091
    9192  }
Note: See TracChangeset for help on using the changeset viewer.