Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4314 in orxonox.OLD for orxonox


Ignore:
Timestamp:
May 26, 2005, 11:36:24 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/physics: nicer fog trailing our little ship

Location:
orxonox/branches/physics/src
Files:
3 edited

Legend:

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

    r4307 r4314  
    8282void ParticleEmitter::setSize(float emitterSize)
    8383{
    84   this->emitterSize = emitterSize;
     84  if (emitterSize > 0.0)
     85    this->emitterSize = emitterSize;
     86  else
     87    emitterSize = 0.0;
    8588}
    8689
     
    9497void ParticleEmitter::setEmissionRate(float emissionRate)
    9598{
    96   this->emissionRate = emissionRate;
     99  if (emissionRate > 0.0)
     100    this->emissionRate = emissionRate;
     101  else
     102    this->emissionRate = 0.0;
    97103}
    98104
  • orxonox/branches/physics/src/story_entities/world.cc

    r4301 r4314  
    470470  // Creating a Test Particle Emitter
    471471  ParticleEmitter* emitter = new ParticleEmitter(Vector(-1, 0, 0), M_PI_4, 400, .5);
    472   emitter->setType(EMITTER_CUBE);
     472  emitter->setType(EMITTER_DOT);
    473473  emitter->setSize(20);
    474474  emitter->setParent(this->localPlayer);
  • orxonox/branches/physics/src/subprojects/particles/framework.cc

    r4310 r4314  
    3535  ParticleSystem* system = new ParticleSystem(100000, PARTICLE_SPRITE);
    3636  system->setLifeSpan(5);
    37   system->setConserve(.99);
     37  system->setConserve(.999);
    3838  system->setRadius(4, 3, 1, 2);
    3939  system->setColor(.5,0,0,.5, 1,1,0,1, 0,0,0,0);
Note: See TracChangeset for help on using the changeset viewer.