Changeset 3949 in orxonox.OLD
- Timestamp:
- Apr 24, 2005, 11:00:11 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/particleEngine/src/story_entities/world.cc
r3948 r3949 380 380 ParticleEmitter* testEmitter,* testEmitter2; 381 381 ParticleSystem* testSystem; 382 testEmitter = new ParticleEmitter(Vector(-1,0,0), M_PI_2, 120.0, .5);382 testEmitter = new ParticleEmitter(Vector(-1,0,0), .4, 120.0, .5); 383 383 testEmitter->setParent(localPlayer); 384 384 testEmitter->setRelCoor(Vector(-3, 0, 0)); 385 385 testEmitter->setName("ship emitter"); 386 testEmitter2 = new ParticleEmitter(Vector(1,0,0), .1, 120.0, 1); 386 /* 387 testEmitter2 = new ParticleEmitter(Vector(1,0,0), .1, 1.0, 1); 387 388 testEmitter2->setParent(tn); 388 389 testEmitter2->setName("crap emitter"); 389 390 testSystem = new ParticleSystem(1000 );391 testSystem->setLifeSpan( 1, .8);392 testSystem->setRadius( 1.0, 0.0, .5);390 */ 391 testSystem = new ParticleSystem(10000); 392 testSystem->setLifeSpan(.3, .2); 393 testSystem->setRadius(3.0, 0.0, .5); 393 394 testSystem->setConserve(.8); 394 395 testSystem->setInheritSpeed(1); … … 396 397 397 398 ParticleEngine::getInstance()->addConnection(testEmitter, testSystem); 398 ParticleEngine::getInstance()->addConnection(testEmitter2, testSystem);399 // ParticleEngine::getInstance()->addConnection(testEmitter2, testSystem); 399 400 ParticleEngine::getInstance()->debug(); 400 401
Note: See TracChangeset
for help on using the changeset viewer.