Changeset 4478 in orxonox.OLD for orxonox/trunk/src/lib/particles/particle_emitter.h
- Timestamp:
- Jun 2, 2005, 5:01:50 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/particles/particle_emitter.h
r4437 r4478 10 10 11 11 // FORWARD DEFINITION 12 struct Particle;13 12 class ParticleSystem; 14 13 class TiXmlElement; 15 14 16 15 //! The form of the Emitter to emit from 17 typedef enum EMITTER_TYPE { EMITTER_DOT = 1,18 EMITTER_PLANE = 2,19 EMITTER_SPHERE= 4,20 EMITTER_CUBE = 8};16 typedef enum EMITTER_TYPE { EMITTER_DOT = 1, 17 EMITTER_PLANE = 2, 18 EMITTER_SPHERE= 4, 19 EMITTER_CUBE = 8 }; 21 20 22 21 //! A class to handle an Emitter. … … 57 56 void debug(void); 58 57 58 59 59 private: 60 EMITTER_TYPE type;//!< The type of emitter this is61 float emitterSize;//!< The size of the emitter (not for EMITTER_DOT)62 Vector direction;//!< emition direction63 float angle;//!< max angle from the direction of the emitter64 float randomAngle;//!< random emission angle (angle +- angleRandom is the emitted angle.65 float emissionRate;//!< amount of particles per seconds emitted by emitter.66 float velocity;//!< the initial speed of a Particles.67 float randomVelocity;//!< the random variation from the initial Speed.60 EMITTER_TYPE type; //!< The type of emitter this is 61 float emitterSize; //!< The size of the emitter (not for EMITTER_DOT) 62 Vector direction; //!< emition direction 63 float angle; //!< max angle from the direction of the emitter 64 float randomAngle; //!< random emission angle (angle +- angleRandom is the emitted angle. 65 float emissionRate; //!< amount of particles per seconds emitted by emitter. 66 float velocity; //!< the initial speed of a Particles. 67 float randomVelocity; //!< the random variation from the initial Speed. 68 68 69 float saveTime;//!< The time that was missing by the last Tick (otherwise there would be no emission when framefate is too big).69 float saveTime; //!< The time that was missing by the last Tick (otherwise there would be no emission when framefate is too big). 70 70 }; 71 71
Note: See TracChangeset
for help on using the changeset viewer.