- Timestamp:
- May 27, 2005, 9:34:57 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/subprojects/particles/particle_fun.cc
r4338 r4342 26 26 // Creating a Test Particle System 27 27 ParticleSystem* system = new ParticleSystem(100000, PARTICLE_SPRITE); 28 system->setRadius(0,0,0,0); 29 system->setLifeSpan(0); 30 system->setConserve(1.0); 28 31 29 32 // Creating a Test Particle Emitter 30 33 ParticleEmitter* emitter = new ParticleEmitter(Vector(0 , 1, 0)); 34 emitter->setEmissionRate(0); 35 emitter->setEmissionVelocity(0,0); 36 emitter->setSpread(0,0); 37 emitter->setType(EMITTER_DOT); 38 emitter->setSize(0); 31 39 // Add the Flow from the Emitter into the System 32 40 ParticleEngine::getInstance()->addConnection(emitter, system); … … 202 210 EmitterType->addItem("EMITTER_PLANE"); 203 211 EmitterType->addItem("EMITTER_CUBE"); 204 EmitterType->connectSignal("changed", (void*)EmitterType, emitterChange ); 212 EmitterType->load("EMITTER_DOT"); 213 EmitterType->connectSignal("changed", (void*)EmitterType, emitterChange ); 205 214 emitterBox->fill(EmitterType); 206 215 … … 240 249 Slider* ConserveFactor = new Slider("ConserveFactor", 0, 1); 241 250 ConserveFactor->setExactness(3); 251 ConserveFactor->load("1.0"); 242 252 ConserveFactor->connectSignal("value_changed", (void*)ConserveFactor, systemChange ); 243 253 systemBox->fill(ConserveFactor); … … 248 258 ParticleType->addItem("PARTICLE_SPARK"); 249 259 ParticleType->addItem("PARTICLE_SPRITE"); 260 ParticleType->load("PARTICLE_SPRITE"); 250 261 ParticleType->connectSignal("changed", (void*)ParticleType, systemChange ); 251 262 systemBox->fill(ParticleType);
Note: See TracChangeset
for help on using the changeset viewer.