Changeset 10658 in orxonox.OLD for trunk/src/world_entities/particles/particle_emitter.cc
- Timestamp:
- May 21, 2007, 1:48:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/particles/particle_emitter.cc
r9869 r10658 39 39 this->setEmissionRate(emissionRate); 40 40 this->setEmissionVelocity(velocity); 41 this->setExtForce(0, 0, 0); 41 42 42 43 this->saveTime = 0.0; … … 69 70 LoadParam(root, "emission-velocity", this, ParticleEmitter, setEmissionVelocity) 70 71 .describe("How fast the particles are emittet (their initial speed)"); 72 73 LoadParam(root, "ext-force", this, ParticleEmitter, setExtForce) 74 .describe("The external force that affects the particles."); 71 75 72 76 LoadParam(root, "emission-momentum", this, ParticleEmitter, setEmissionMomentum) … … 166 170 this->momentum = momentum; 167 171 this->momentumRandom = randomMomentum; 172 } 173 174 /** 175 * sets the external force that affects all particles emitted 176 */ 177 void ParticleEmitter::setExtForce(float x, float y, float z) 178 { 179 this->extForce = Vector(x, y, z); 168 180 } 169 181
Note: See TracChangeset
for help on using the changeset viewer.