Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6825 in orxonox.OLD for trunk/src/lib/particles/dot_emitter.cc


Ignore:
Timestamp:
Jan 29, 2006, 1:07:01 PM (19 years ago)
Author:
bensch
Message:

trunk: new interface to ParticleEmitters

File:
1 edited

Legend:

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

    r6822 r6825  
    3333 *  standard constructor
    3434*/
    35 DotEmitter::DotEmitter(const Vector& direction, float angle, float emissionRate,
    36                        float velocity)
    37   : ParticleEmitter(direction, angle, emissionRate, velocity)
     35DotEmitter::DotEmitter(float emissionRate, float velocity, float angle)
     36  : ParticleEmitter( emissionRate, velocity, angle)
    3837{
    3938  this->init();
     
    7978    Vector randDir = Vector(rand()-RAND_MAX/2, rand()-RAND_MAX/2, rand()-RAND_MAX/2);
    8079    randDir.normalize();
    81     randDir = (this->getAbsDir()*Quaternion(angle + randomAngle *((float)rand()/RAND_MAX -.5), randDir)).apply(this->direction);
     80    randDir = (Quaternion(angle + randomAngle *((float)rand()/RAND_MAX -.5), randDir)).apply(this->getAbsDirX());
    8281    Vector velocityV = randDir.getNormalized()*this->velocity + inheritVelocity;
    8382
Note: See TracChangeset for help on using the changeset viewer.