C4 Engine Terathon Software C4 Engine API Documentation

• Effect Manager

API Links
Developer Links

struct Particle

Defined in:  C4Particles.h
The Particle structure contains state information about a particle.
Definition

struct Particle

Member Functions
Particle::GetPreviousParticle Returns the previous particle in a particle system.
Particle::GetNextParticle Returns the next particle in a particle system.
Data Members
Particle            *prevParticle; A pointer to the previous particle in the system. This is nullptr for the first particle.
Particle            *nextParticle; A pointer to the next particle in the system. This is nullptr for the last particle.
unsigned long       particleIndex; The unique index of the particle in the particle pool. This is in the range [0, n − 1], where n is the total number of particles in the pool.
long                emitTime; The time remaining before the particle is emitted, in milliseconds.
long                lifeTime; The time remaining (once the particle is emitted) before the particle dies, in milliseconds.
float               radius; The radius of the particle.
ColorRGBA           color; The color and transparency of the particle.
UnsignedFixed   orientation; The orientation of the particle as an unsigned 8.24-bit fixed-point angle. The top 8 bits divide the circle into 256 angles of 360/256 degrees. This field is only used for point particles and should not be set for other types of particle systems.
float           height; The vertical height of a fire particle. This field is only used for fire particles and should not be set for other types of particle systems.
Point3D             position; The world-space position of the particle.
Vector3D            velocity; The world-space velocity of the particle.
See Also

TexcoordParticle

QuadParticle

PolyParticle

FireParticle

BlobParticle