Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::Particle::CParticle Class Reference

Individual particle data structure. More...

#include <ParticleSystem/Particles/CParticle.h>

Public Member Functions

 CParticle (u32 index)
void swap (CParticle &p)
 Swaps all data with another particle instance.

Public Attributes

u32 Index
 Global index in the group's particle array.
s32 ParentIndex
 Index of the parent particle in a parent group (for sub-emitters).
bool Immortal
 If true, this particle never dies from age.
float Params [NumParams]
 Current values of animated parameters.
float StartValue [NumParams]
 Initial values of animated parameters.
float EndValue [NumParams]
 Targeted end values of animated parameters.
float Age
 Time since birth in seconds.
float Life
 Remaining time to live in seconds.
float LifeTime
 Total expected lifespan in seconds.
bool HaveRotate
 Optimization flag: whether this particle has active rotation logic.
core::vector3df Position
 Current world position.
core::vector3df Rotation
 Current world rotation (Euler).
core::vector3df Velocity
 Current movement velocity.
core::vector3df LastPosition
 Position in the previous frame.
core::vector3df SubEmitterDirection
 Initial direction for sub-emitters if velocity is zero.
void * UserData
 Optional user-defined data.

Detailed Description

Individual particle data structure.

Member Data Documentation

◆ Params

float Skylicht::Particle::CParticle::Params[NumParams]

Current values of animated parameters.

See also
EParticleParams

The documentation for this class was generated from the following file: