Changeset 4307 in orxonox.OLD for orxonox/branches/physics/src/lib
- Timestamp:
- May 26, 2005, 8:26:49 PM (20 years ago)
- Location:
- orxonox/branches/physics/src/lib/graphics/particles
- Files:
-
- 3 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
Note: See TracChangeset
for help on using the changeset viewer.