Changeset 7302 in orxonox.OLD for trunk/src/lib/particles
- Timestamp:
- Apr 16, 2006, 8:07:11 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/particles/dot_emitter.cc
r7193 r7302 34 34 */ 35 35 DotEmitter::DotEmitter(float emissionRate, float velocity, float angle) 36 : ParticleEmitter( emissionRate, velocity, angle)36 : ParticleEmitter( emissionRate, velocity, angle) 37 37 { 38 38 this->init(); … … 44 44 */ 45 45 DotEmitter::DotEmitter(const TiXmlElement* root) 46 : ParticleEmitter()46 : ParticleEmitter() 47 47 { 48 48 this->init(); 49 49 50 51 50 if (root != NULL) 51 this->loadParams(root); 52 52 } 53 53 … … 87 87 Quaternion moment = Quaternion(this->momentum + this->momentumRandom, randDir); 88 88 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); 90 91 91 92 }
Note: See TracChangeset
for help on using the changeset viewer.