Changeset 4378 in orxonox.OLD for orxonox/trunk/src/subprojects
- Timestamp:
- May 29, 2005, 2:02:56 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/subprojects/particles/particle_fun.cc
r4370 r4378 20 20 #include "physics_engine.h" 21 21 #include "particle_engine.h" 22 #include "fields.h" 22 23 23 24 #define PINIT_EMISSION_RATE 50 … … 32 33 #define PINIT_PARTICLE_TYPE PARTICLE_SPRITE 33 34 #define PINIT_INHERIT_SPEED 0.0 34 35 #define PINIT_PARTICLE_MASS 1.0 35 36 36 37 void Framework::moduleInit(int argc, char** argv) 37 38 { 38 39 verbose = 5; 40 ParticleEngine::getInstance(); 41 PhysicsEngine::getInstance(); 42 39 43 40 44 // Creating a Test Particle System … … 53 57 // Add the Flow from the Emitter into the System 54 58 ParticleEngine::getInstance()->addConnection(emitter, system); 59 60 61 Field* twirl = new Twirl(); 62 twirl->setMagnitude(.1); 63 new PhysicsConnection(system, twirl); 55 64 } 56 65 … … 71 80 void Framework::moduleTick(float dt) 72 81 { 82 PhysicsEngine::getInstance()->tick(dt); 73 83 ParticleEngine::getInstance()->tick(dt); 74 84 } … … 85 95 PRINT(0)("i - Particle-state Information\n\n"); 86 96 PRINT(0)("\n"); 87 88 97 } 89 98
Note: See TracChangeset
for help on using the changeset viewer.