Changeset 3935 in orxonox.OLD for orxonox/branches/particleEngine/src/lib/graphics/particles/particle_emitter.h
- Timestamp:
- Apr 23, 2005, 3:30:45 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/particleEngine/src/lib/graphics/particles/particle_emitter.h
r3932 r3935 22 22 23 23 public: 24 ParticleEmitter(const Vector& direction, float angle = 20.0, float emissionRate = 1.0,24 ParticleEmitter(const Vector& direction, float angle = .5, float emissionRate = 1.0, 25 25 float velocity = 1.0); 26 26 virtual ~ParticleEmitter(void); … … 34 34 void setEmissionRate(float emissionRate); 35 35 void setSpread(float angle, float randomAngle = 0.0); 36 void setVelocity(float velocity, float random = 0.0);36 void setVelocity(float velocity, float randomVelocity = 0.0); 37 37 38 38 private: 39 39 Vector direction; //!< emition direction 40 40 float angle; //!< max angle from the direction of the emitter 41 float angleRandom; //!< random emission angle (angle +- angleRandom is the emitted angle. 42 float emissionRate; //!< amount of particles per seconds emitted by emiter 43 float velocity; //!< the contant speed a particle gets if been emitted 41 float randomAngle; //!< random emission angle (angle +- angleRandom is the emitted angle. 42 float emissionRate; //!< amount of particles per seconds emitted by emitter. 43 float velocity; //!< the initial speed of a Particles. 44 float randomVelocity; //!< the random variation from the initial Speed. 44 45 45 46 float saveTime; //!< The time that was missing by the last Tick (otherwise there would be no emission when framefate is too big).
Note: See TracChangeset
for help on using the changeset viewer.