Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 22, 2005, 10:01:18 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: some more properties

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/particleEngine/src/lib/graphics/particles/particle_emitter.h

    r3930 r3931  
    1313class ParticleSystem;
    1414
     15typedef enum EMITTER_TYPE {EMITTER_DOT,
     16                           EMITTER_PLANE,
     17                           EMITTER_SPHERE,
     18                           EMITTER_CUBE};
    1519
    1620//! A default singleton class.
     
    1923 public:
    2024  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);
    2226  virtual ~ParticleEmitter(void);
    2327
     
    2731
    2832  /* controlling the behavour: these can be used as Animation interfaces */
    29   void setSpread(float angle, float random = 0.0);
    30   void setEmissionRate(float emissionRate, float random = 0.0);
     33  void setEmissionRate(float emissionRate);
     34  void setSpread(float angle, float randomAngle = 0.0);
    3135  void setVelocity(float velocity, float random = 0.0);
    32 
    33   /* some functions needed for internal use */
    34   void tick(float dt);
    3536
    3637 private:
    3738  Vector direction;     //!< emition direction
    3839  float angle;          //!< max angle from the direction of the emitter
     40  float angleRandom;    //!< random emission angle (angle +- angleRandom is the emitted angle.
    3941  float emissionRate;   //!< amount of particles per seconds emitted by emiter
    4042  float velocity;       //!< the contant speed a particle gets if been emitted
Note: See TracChangeset for help on using the changeset viewer.