Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4186 in orxonox.OLD for orxonox/branches/physics/src/story_entities


Ignore:
Timestamp:
May 14, 2005, 10:57:14 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/physics: forces now time dependant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/physics/src/story_entities/world.cc

    r4184 r4186  
    492492
    493493
    494   ParticleSystem* system = new ParticleSystem(100000, PARTICLE_SPARK);
     494  ParticleSystem* system = new ParticleSystem(10000, PARTICLE_SPARK);
    495495  system->setLifeSpan(5);
    496496  system->setConserve(.9);
    497497  system->setRadius(2, 0, 2, 0);
    498498
    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);
    500500  emitter->setParent(this->localPlayer);
    501501 
    502502  Field* twirl = new Twirl();
    503   twirl->setMagnitude(.0001);
     503  twirl->setMagnitude(-.1);
    504504  Field* gravity = new PointGravity();
    505   gravity->setMagnitude(0.0001);
     505  gravity->setMagnitude(0);
    506506  new PhysicsConnection(system, twirl);
    507   new PhysicsConnection(system, gravity);
    508   twirl->setParent(this->localPlayer);
     507  //  new PhysicsConnection(system, gravity);
     508  twirl->setParent(this->localCamera->getTarget());
    509509  gravity->setParent(this->localCamera->getTarget());
    510510  particleEngine->addConnection(emitter, system);
Note: See TracChangeset for help on using the changeset viewer.