Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk/graphics/make

File size: 932 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(const Vector& direction, float angle = 20.0, float emissionRate = 1.0, 
21                  float velocity = 1.0, float ttl = 1.0);
22  virtual ~ParticleEmitter(void);
23
24  void start();
25  void stop();
26
27  void tick(float dt);
28
29 private:
30  Vector direction;     //!< emition direction
31  float angle;          //!< max angle from the direction of the emitter
32  float emissionRate;   //!< amount of particles per seconds emitted by emiter
33  float velocity;       //!< the contant speed a particle gets if been emitted
34  float timeToLive;     //!< this is the global time to live (ttl) definition
35
36};
37
38#endif /* _PARTICLE_EMITTER_H */
Note: See TracBrowser for help on using the repository browser.