Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 23, 2005, 3:47:45 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: size should iterate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/particleEngine/src/lib/graphics/particles/particle_emitter.cc

    r3935 r3936  
    131131      Vector randDir = Vector(random()-RAND_MAX/2, random()-RAND_MAX/2, random()-RAND_MAX/2);
    132132      randDir.normalize();
    133       randDir = Quaternion(angle + randomAngle *((float)random()/RAND_MAX -.5), randDir).apply(this->direction);
     133      randDir = (this->getAbsDir()*Quaternion(angle + randomAngle *((float)random()/RAND_MAX -.5), randDir)).apply(this->direction);
    134134      randDir.normalize();
    135135      system->addParticle(this->getAbsCoor(), randDir* velocity);
Note: See TracChangeset for help on using the changeset viewer.