Changeset 4186 in orxonox.OLD for orxonox/branches/physics/src/story_entities
- Timestamp:
- May 14, 2005, 10:57:14 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/story_entities/world.cc
r4184 r4186 492 492 493 493 494 ParticleSystem* system = new ParticleSystem(10000 0, PARTICLE_SPARK);494 ParticleSystem* system = new ParticleSystem(10000, PARTICLE_SPARK); 495 495 system->setLifeSpan(5); 496 496 system->setConserve(.9); 497 497 system->setRadius(2, 0, 2, 0); 498 498 499 ParticleEmitter* emitter = new ParticleEmitter(Vector(-1, 0, 0), M_PI_ 2, 5000, 1);499 ParticleEmitter* emitter = new ParticleEmitter(Vector(-1, 0, 0), M_PI_4, 1000, 0); 500 500 emitter->setParent(this->localPlayer); 501 501 502 502 Field* twirl = new Twirl(); 503 twirl->setMagnitude( .0001);503 twirl->setMagnitude(-.1); 504 504 Field* gravity = new PointGravity(); 505 gravity->setMagnitude(0 .0001);505 gravity->setMagnitude(0); 506 506 new PhysicsConnection(system, twirl); 507 new PhysicsConnection(system, gravity);508 twirl->setParent(this->local Player);507 // new PhysicsConnection(system, gravity); 508 twirl->setParent(this->localCamera->getTarget()); 509 509 gravity->setParent(this->localCamera->getTarget()); 510 510 particleEngine->addConnection(emitter, system);
Note: See TracChangeset
for help on using the changeset viewer.