Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 22, 2005, 10:21:00 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/physics: particles emitting from plane and Cube.

File:
1 edited

Legend:

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

    r4178 r4274  
    1313class ParticleSystem;
    1414
    15 typedef enum EMITTER_TYPE {EMITTER_DOT,
    16                            EMITTER_PLANE,
    17                            EMITTER_SPHERE,
    18                            EMITTER_CUBE};
     15//! The form of the Emitter to emit from
     16typedef enum EMITTER_TYPE {EMITTER_DOT   = 1,
     17                           EMITTER_PLANE = 2,
     18                           EMITTER_SPHERE= 4,
     19                           EMITTER_CUBE  = 8};
    1920
    2021//! A default singleton class.
     
    3233
    3334  /* controlling the behavour: these can be used as Animation interfaces */
     35  void setType(EMITTER_TYPE type);
     36  void setSize(float emitterSize);
    3437  void setEmissionRate(float emissionRate);
    3538  void setSpread(float angle, float randomAngle = 0.0);
     
    3942
    4043 private:
     44  EMITTER_TYPE type;    //!< The type of emitter this is
     45  float emitterSize;    //!< The size of the emitter (not for EMITTER_DOT)
    4146  Vector direction;     //!< emition direction
    4247  float angle;          //!< max angle from the direction of the emitter
Note: See TracChangeset for help on using the changeset viewer.