Changeset 4192 in orxonox.OLD for orxonox/branches/physics/src/lib/graphics/particles/particle_system.h
- Timestamp:
- May 16, 2005, 12:55:19 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/lib/graphics/particles/particle_system.h
r4186 r4192 36 36 typedef struct Particle 37 37 { 38 float timeToLive; //!< The time this particle lives from NOW on. 38 float lifeTime; //!< The time this particle has to live. 39 float lifeCycle; //!< The fraction of time passed. (in percentage of its lifeTime) 40 39 41 Vector position; //!< The current position of this particle. 40 42 Vector velocity; //!< The current velocity of this particle. … … 44 46 float radius; //!< The current size of this particle. 45 47 float radiusIt; //!< The difference of the Size per second. 48 49 GLfloat color [4]; //!< A Color for the particles. 46 50 47 51 PARTICLE_TYPE type; … … 70 74 void setMass(float mass, float randomMass); 71 75 76 void setColor(GLfloat br, GLfloat bg, GLfloat bb, GLfloat ba, 77 GLfloat mr, GLfloat mg, GLfloat mb, GLfloat ma, 78 GLfloat er, GLfloat eg, GLfloat eb, GLfloat ea); 79 72 80 void applyField(float dt, Field* field); 73 81 … … 82 90 float conserve; //!< How much energy gets conserved to the next Tick. 83 91 float lifeSpan; //!< Initial lifetime of a Particle. 84 float randomLifeSpan; 85 float startRadius; 86 float endRadius; 87 float randomStartRadius; 88 float randomEndRadius; 89 float initialMass; 90 float randomInitialMass; 91 float inheritSpeed; 92 float randomLifeSpan; //!< A random value for the Lifespan (around the initial lifetime) 93 float startRadius; //!< The beginning Radius of the Particle 94 float endRadius; //!< The end Radius of the Particle 95 float randomStartRadius; //!< The Random start Radius (begin + rand*randomValue) 96 float randomEndRadius; //!< Random end value 97 float initialMass; //!< The initial Mass of the Particle 98 float randomInitialMass; //!< The random initial Mass of the Particle 99 float inheritSpeed; //!< How much speed the particle inherits from the Emitters speed \todo move this to the emitter 100 101 GLfloat startColor[4]; //!< Color of the Particle at the beginning 102 GLfloat midColor[4]; //!< Color of the Particle at the middle of its lifeSpan 103 GLfloat endColor[4]; //!< Color of the Particle at the end of its lifeSpan 92 104 93 105 // particles
Note: See TracChangeset
for help on using the changeset viewer.