Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 24, 2005, 3:35:03 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: more momentum implementation in particles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/particles/particle_emitter.h

    r4639 r4690  
    4646  void setSpread(float angle, float randomAngle = 0.0);
    4747  void setEmissionVelocity(float velocity, float randomVelocity = 0.0);
     48  void setEmissionMomentum(float momentum, float randomMomentum = 0.0);
    4849
    4950  /** \returns the type of the emitter */
     
    6162  /** \returns the EmissionVelocity of the emitter */
    6263  inline float getEmissionVelocity(void) const { return this->velocity; };
     64  /** \returns the EmissionMomentum of this emitter */
     65  inline float getEmissionMomentum(void) const { return this->momentum; };
    6366
    6467  void debug(void) const;
    6568
    66 
    6769 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 emitter
    71   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.
    7274  float           angle;             //!< max angle from the direction of the emitter
    7375  float           randomAngle;       //!< random emission angle (angle +- angleRandom is the emitted angle.
     
    7577  float           velocity;          //!< the initial speed of a Particles.
    7678  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.
    7781
    7882  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.