Particles

Emission, updates and rendering of particles in the particle system.

Classes

Structs

Enums

Internal

Symbols intended for engine-internal use. Not part of the public API.

Classes

Structs

Enums

Free functions

CreateParticleSystem

ParticleSystem &CreateParticleSystem(Registry &registry, Entity entity, const SPtr<RendererScene> &rendererScene, const Transform &transform = Transform::kIdentity)

Creates all ParticleSystem data fragments, a world transform, and allocates a renderer ID.

Entity is ready for rendering after this call. Returns the ParticleSystem data fragment.

DestroyParticleSystem

void DestroyParticleSystem(Registry &registry, Entity entity)

Removes all ParticleSystem fragments.

Cleanup (ID deallocation, dirty tags) is handled by the associated RendererScene when it is notified the fragment has been removed.