Changeset 3942 in orxonox.OLD for orxonox/branches/particleEngine/src/story_entities
- Timestamp:
- Apr 23, 2005, 1:28:24 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/particleEngine/src/story_entities/world.cc
r3938 r3942 379 379 ParticleEmitter* testEmitter,* testEmitter2; 380 380 ParticleSystem* testSystem; 381 testEmitter = new ParticleEmitter(Vector(-1,0,0), M_PI_2, 1200.0, 1);381 testEmitter = new ParticleEmitter(Vector(-1,0,0), M_PI_2, 1200.0, .5); 382 382 testEmitter->setParent(localPlayer); 383 testEmitter2 = new ParticleEmitter(Vector(-1,0,0), .1, 1200, 1); 384 testEmitter2->setParent(tn); 383 testEmitter->setRelCoor(Vector(-3, 0, 0)); 385 384 386 385 testSystem = new ParticleSystem(100000); 387 testSystem->setLifeSpan(3); 386 testSystem->setLifeSpan(1, .8); 387 testSystem->setRadius(1.0, 0.0, .5); 388 388 testSystem->setConserve(.8); 389 389 testSystem->setInheritSpeed(1); 390 390 391 391 ParticleEngine::getInstance()->addConnection(testEmitter, testSystem); 392 ParticleEngine::getInstance()->addConnection(testEmitter2, testSystem);393 392 394 393 break;
Note: See TracChangeset
for help on using the changeset viewer.