Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/particleEngine/src/lib/graphics/particles/particle_emitter.h @ 3926

Last change on this file since 3926 was 3926, checked in by patrick, 19 years ago

orxonox/trunk/lib/particles: added an abstract emitter class with some attributes, not yet finished

File size: 901 bytes
Line 
1/*!
2    \file particle_e,otter.h
3    \brief Definition of a ParticleEmitter
4*/
5
6#ifndef _PARTICLE_EMITTER_H
7#define _PARTICLE_EMITTER_H
8
9#include "p_node.h"
10
11// FORWARD DEFINITION
12struct Particle;
13class ParticleSystem;
14
15
16//! A default singleton class.
17class ParticleEmitter : public PNode {
18
19 public:
20  ParticleEmitter(void);
21  virtual ~ParticleEmitter(void);
22
23  void tick(float dt);
24
25 private:
26  Vector direction;     //!< emition direction
27  float angle;          //!< max angle from the direction of the emitter
28
29  float emissionRate;   //!< amount of particles per seconds emitted by emiter
30 
31  float velocity;       //!< the contant speed a particle gets if been emitted
32  float minVel, maxVel; //!< the minimal and maximal velocity a particle has
33
34  float timeToLive;     //!< this is the global time to live (ttl) definition
35  float minTTL, maxTTL  //!<
36};
37
38#endif /* _PARTICLE_EMITTER_H */
Note: See TracBrowser for help on using the repository browser.