Changeset 4314 in orxonox.OLD for orxonox/branches/physics
- Timestamp:
- May 26, 2005, 11:36:24 PM (19 years ago)
- Location:
- orxonox/branches/physics/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/lib/graphics/particles/particle_emitter.cc
r4307 r4314 82 82 void ParticleEmitter::setSize(float emitterSize) 83 83 { 84 this->emitterSize = emitterSize; 84 if (emitterSize > 0.0) 85 this->emitterSize = emitterSize; 86 else 87 emitterSize = 0.0; 85 88 } 86 89 … … 94 97 void ParticleEmitter::setEmissionRate(float emissionRate) 95 98 { 96 this->emissionRate = emissionRate; 99 if (emissionRate > 0.0) 100 this->emissionRate = emissionRate; 101 else 102 this->emissionRate = 0.0; 97 103 } 98 104 -
orxonox/branches/physics/src/story_entities/world.cc
r4301 r4314 470 470 // Creating a Test Particle Emitter 471 471 ParticleEmitter* emitter = new ParticleEmitter(Vector(-1, 0, 0), M_PI_4, 400, .5); 472 emitter->setType(EMITTER_ CUBE);472 emitter->setType(EMITTER_DOT); 473 473 emitter->setSize(20); 474 474 emitter->setParent(this->localPlayer); -
orxonox/branches/physics/src/subprojects/particles/framework.cc
r4310 r4314 35 35 ParticleSystem* system = new ParticleSystem(100000, PARTICLE_SPRITE); 36 36 system->setLifeSpan(5); 37 system->setConserve(.99 );37 system->setConserve(.999); 38 38 system->setRadius(4, 3, 1, 2); 39 39 system->setColor(.5,0,0,.5, 1,1,0,1, 0,0,0,0);
Note: See TracChangeset
for help on using the changeset viewer.