Changeset 4307 in orxonox.OLD for orxonox/branches/physics/src
- Timestamp:
- May 26, 2005, 8:26:49 PM (20 years ago)
- Location:
- orxonox/branches/physics/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/lib/graphics/particles/particle_emitter.cc
r4274 r4307 37 37 this->setSpread(angle); 38 38 this->setEmissionRate(emissionRate); 39 this->set Velocity(velocity);39 this->setEmissionVelocity(velocity); 40 40 41 41 this->saveTime = 0.0; … … 119 119 you may want to use the animation class 120 120 */ 121 void ParticleEmitter::set Velocity(float velocity, float randomVelocity)121 void ParticleEmitter::setEmissionVelocity(float velocity, float randomVelocity) 122 122 { 123 123 this->velocity = velocity; -
orxonox/branches/physics/src/lib/graphics/particles/particle_emitter.h
r4274 r4307 37 37 void setEmissionRate(float emissionRate); 38 38 void setSpread(float angle, float randomAngle = 0.0); 39 void setVelocity(float velocity, float randomVelocity = 0.0); 39 void setEmissionVelocity(float velocity, float randomVelocity = 0.0); 40 41 /** \returns the type of the emitter */ 42 inline EMITTER_TYPE getType(void) const { return this->type; }; 43 /** \returns the Size of the emitter */ 44 inline float getSize(void) const { return this->emitterSize; }; 45 /** \returns the emissionRate */ 46 inline float getEmissionRate(void) const { return this->emissionRate; }; 47 /** \returns the SpreadAngle of the emitter */ 48 inline float getSpread(void) { return this->angle; }; 49 /** \returns the EmissionVelocity of the emitter */ 50 inline float getEmissionVelocity(void) { return this->velocity; }; 40 51 41 52 void debug(void); -
orxonox/branches/physics/src/lib/graphics/particles/particle_system.h
r4192 r4307 78 78 GLfloat er, GLfloat eg, GLfloat eb, GLfloat ea); 79 79 80 /** \returns the Type of the particles */ 81 inline PARTICLE_TYPE getType(void) const { return this->particleType; }; 82 /** \returns the Material that lies on this particles */ 83 inline const Material* getMaterial(void) const { return this->material; }; 84 /** \returns the inherit-speed-factor */ 85 inline float getInheritSpeed(void) const { return this->inheritSpeed; }; 86 /** \returns the lifespan of the particles */ 87 inline float getLifeSpan(void) const { return this->lifeSpan; }; 88 /** \returns the starting-radius of the particles */ 89 inline float getStartRadius(void) const { return this->startRadius; }; 90 /** \returns the end-radius of the particles */ 91 inline float getEndRadius(void) const { return this->endRadius; }; 92 /** \returns the conserve-factor of the particles */ 93 inline float getConserve(void) const { return this->conserve; }; 94 /** \returns the initial mass of the particles */ 95 inline float getMass(void) const { return this->initialMass; }; 96 80 97 void applyField(float dt, Field* field); 81 98 -
orxonox/branches/physics/src/subprojects/particles/framework.cc
r4306 r4307 168 168 //zoomTo *=2; 169 169 break; 170 case SDLK_h: 171 this->printHelp(); 172 break; 170 173 } 171 174 break; … … 228 231 } 229 232 233 234 235 void Framework::printHelp(void) const 236 { 237 PRINT(0)("Help for the frameWork \n"); 238 PRINT(0)("----------------------"); 239 PRINT(0)("h - print Help\n"); 240 PRINT(0)("i - state Information\n"); 241 PRINT(0)("1,2 - increase/decrease emissionRate\n"); 242 PRINT(0)("3,4 - increase/decrease emission velocity\n"); 243 PRINT(0)("5,6 - increase/decrease spread angle\n"); 244 PRINT(0)("\n"); 245 PRINT(0)("7,8 - increase-decrease emitter-size\n"); 246 PRINT(0)("9 - swap emitterType\n"); 247 PRINT(0)("\n"); 248 249 250 } 251 252 253 230 254 int main(int argc, char *argv[]) 231 255 { -
orxonox/branches/physics/src/subprojects/particles/framework.h
r4306 r4307 32 32 float tick(); 33 33 bool keyHandler(); 34 35 void printHelp(void) const; 34 36 }; 35 37 #endif /* _FRAMEWORK_H */
Note: See TracChangeset
for help on using the changeset viewer.