Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 21, 2007, 1:48:08 AM (17 years ago)
Author:
bknecht
Message:

changes from landauf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/particles/particle_emitter.cc

    r9869 r10658  
    3939  this->setEmissionRate(emissionRate);
    4040  this->setEmissionVelocity(velocity);
     41  this->setExtForce(0, 0, 0);
    4142
    4243  this->saveTime = 0.0;
     
    6970  LoadParam(root, "emission-velocity", this, ParticleEmitter, setEmissionVelocity)
    7071    .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.");
    7175
    7276  LoadParam(root, "emission-momentum", this, ParticleEmitter, setEmissionMomentum)
     
    166170  this->momentum = momentum;
    167171  this->momentumRandom = randomMomentum;
     172}
     173
     174/**
     175 *  sets the external force that affects all particles emitted
     176*/
     177void ParticleEmitter::setExtForce(float x, float y, float z)
     178{
     179    this->extForce = Vector(x, y, z);
    168180}
    169181
Note: See TracChangeset for help on using the changeset viewer.