Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 23, 2005, 3:30:45 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: spread works, and many other functions implemented

File:
1 edited

Legend:

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

    r3932 r3935  
    2222
    2323 public:
    24   ParticleEmitter(const Vector& direction, float angle = 20.0, float emissionRate = 1.0,
     24  ParticleEmitter(const Vector& direction, float angle = .5, float emissionRate = 1.0,
    2525                  float velocity = 1.0);
    2626  virtual ~ParticleEmitter(void);
     
    3434  void setEmissionRate(float emissionRate);
    3535  void setSpread(float angle, float randomAngle = 0.0);
    36   void setVelocity(float velocity, float random = 0.0);
     36  void setVelocity(float velocity, float randomVelocity = 0.0);
    3737
    3838 private:
    3939  Vector direction;     //!< emition direction
    4040  float angle;          //!< max angle from the direction of the emitter
    41   float angleRandom;    //!< random emission angle (angle +- angleRandom is the emitted angle.
    42   float emissionRate;   //!< amount of particles per seconds emitted by emiter
    43   float velocity;       //!< the contant speed a particle gets if been emitted
     41  float randomAngle;    //!< random emission angle (angle +- angleRandom is the emitted angle.
     42  float emissionRate;   //!< amount of particles per seconds emitted by emitter.
     43  float velocity;       //!< the initial speed of a Particles.
     44  float randomVelocity; //!< the random variation from the initial Speed.
    4445
    4546  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.