Changeset 3931 in orxonox.OLD for orxonox/branches/particleEngine/src/lib/graphics/particles/particle_emitter.h
- Timestamp:
- Apr 22, 2005, 10:01:18 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/particleEngine/src/lib/graphics/particles/particle_emitter.h
r3930 r3931 13 13 class ParticleSystem; 14 14 15 typedef enum EMITTER_TYPE {EMITTER_DOT, 16 EMITTER_PLANE, 17 EMITTER_SPHERE, 18 EMITTER_CUBE}; 15 19 16 20 //! A default singleton class. … … 19 23 public: 20 24 ParticleEmitter(const Vector& direction, float angle = 20.0, float emissionRate = 1.0, 21 float velocity = 1.0 , float ttl = 1.0);25 float velocity = 1.0); 22 26 virtual ~ParticleEmitter(void); 23 27 … … 27 31 28 32 /* controlling the behavour: these can be used as Animation interfaces */ 29 void set Spread(float angle, float random = 0.0);30 void set EmissionRate(float emissionRate, float random= 0.0);33 void setEmissionRate(float emissionRate); 34 void setSpread(float angle, float randomAngle = 0.0); 31 35 void setVelocity(float velocity, float random = 0.0); 32 33 /* some functions needed for internal use */34 void tick(float dt);35 36 36 37 private: 37 38 Vector direction; //!< emition direction 38 39 float angle; //!< max angle from the direction of the emitter 40 float angleRandom; //!< random emission angle (angle +- angleRandom is the emitted angle. 39 41 float emissionRate; //!< amount of particles per seconds emitted by emiter 40 42 float velocity; //!< the contant speed a particle gets if been emitted
Note: See TracChangeset
for help on using the changeset viewer.