Skip to content

Particle

Struct

Source: Particle.h

Description

Represents a single particle in the particle system.

Designed to be lightweight to fit many instances in memory (RAM optimization).

Properties

NameTypeDescription
positionpixelroot32::math::Vector2Current position.
velocitypixelroot32::math::Vector2Velocity vector.
coloruint16_tCurrent color (RGB565).
startColorColorInitial color for interpolation.
endColorColorFinal color for interpolation.
lifeuint8_tCurrent remaining life (frames or ticks).
maxLifeuint8_tTotal life duration.
activeboolWhether the particle is currently in use.

Released under the MIT License.