Changeset 4296 in orxonox.OLD
- Timestamp:
- May 26, 2005, 12:34:39 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/subprojects/particles/framework.cc
r4295 r4296 180 180 181 181 break; 182 case SDLK_i: 183 ParticleEngine::getInstance()->debug(); 184 break; 182 185 case SDLK_a: 183 186 zoomTo /=2; … … 264 267 // Creating a Test Particle System 265 268 ParticleSystem* system = new ParticleSystem(100000, PARTICLE_SPRITE); 266 system->setLifeSpan( 1);269 system->setLifeSpan(5); 267 270 system->setConserve(.8); 268 271 system->setRadius(4, 3, 1, 2); … … 270 273 271 274 // Creating a Test Particle Emitter 272 ParticleEmitter* emitter = new ParticleEmitter(Vector( -1, 0, 0), M_PI_4, 400, .5);273 emitter->setType(EMITTER_ CUBE);274 emitter->setSize( 20);275 ParticleEmitter* emitter = new ParticleEmitter(Vector(0 , 0, -1), 0, 100, 1); 276 emitter->setType(EMITTER_DOT ); 277 emitter->setSize(0); 275 278 emitter->setRelCoor(Vector(0,0,0)); 276 279
Note: See TracChangeset
for help on using the changeset viewer.