Changeset 4690 in orxonox.OLD for orxonox/trunk/src/lib/particles/particle_emitter.h
- Timestamp:
- Jun 24, 2005, 3:35:03 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/particles/particle_emitter.h
r4639 r4690 46 46 void setSpread(float angle, float randomAngle = 0.0); 47 47 void setEmissionVelocity(float velocity, float randomVelocity = 0.0); 48 void setEmissionMomentum(float momentum, float randomMomentum = 0.0); 48 49 49 50 /** \returns the type of the emitter */ … … 61 62 /** \returns the EmissionVelocity of the emitter */ 62 63 inline float getEmissionVelocity(void) const { return this->velocity; }; 64 /** \returns the EmissionMomentum of this emitter */ 65 inline float getEmissionMomentum(void) const { return this->momentum; }; 63 66 64 67 void debug(void) const; 65 68 66 67 69 private: 68 EMITTER_TYPE type; //!< The type of emitter this is 69 float emitterSize; //!< The size of the emitter (not for EMITTER_DOT) 70 float inheritSpeed; //!< How much speed the particle inherits from the Emitters speed \todo move this to the emitter71 Vector direction; //!< emition direction 70 EMITTER_TYPE type; //!< The type of emitter this is. 71 float emitterSize; //!< The size of the emitter (not for EMITTER_DOT). 72 float inheritSpeed; //!< How much speed the particle inherits from the Emitters speed. 73 Vector direction; //!< emition direction. 72 74 float angle; //!< max angle from the direction of the emitter 73 75 float randomAngle; //!< random emission angle (angle +- angleRandom is the emitted angle. … … 75 77 float velocity; //!< the initial speed of a Particles. 76 78 float randomVelocity; //!< the random variation from the initial Speed. 79 float momentum; //!< The Initial spped of the Rotation. 80 float momentumRandom; //!< The random variation of the Momentum. 77 81 78 82 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.