![]() |
Skylicht Engine
|
Base interface for particle systems that update particle data. More...
#include <ParticleSystem/Particles/Systems/ISystem.h>
Public Member Functions | |
| virtual void | update (CParticle *particles, int num, CGroup *group, float dt)=0 |
| Core update logic. | |
| void | setEnable (bool b) |
| Enables or disables the system. | |
| bool | isEnable () |
| Checks if the system is enabled. | |
Protected Attributes | |
| bool | m_enable |
| Whether the system is active. | |
Base interface for particle systems that update particle data.
Systems are responsible for iterating over active particles and applying logic (physics, effects, buffer updates).
|
pure virtual |
Core update logic.
| particles | Pointer to the particle array. |
| num | Number of active particles. |
| group | The owner group. |
| dt | Delta time in milliseconds. |
Implemented in Skylicht::Particle::CParentRelativeSystem, Skylicht::Particle::CParticleCPUBufferSystem, Skylicht::Particle::CParticleInstancingSystem, Skylicht::Particle::CParticleSystem, and Skylicht::Particle::CVortexSystem.