ParticleConfig
StructSource: ParticleConfig.h
Description
Configuration parameters for a particle emitter.
Defines the behavior and appearance of particles generated by an emitter. Allows defining ranges for randomness (speed, life).
Properties
| Name | Type | Description |
|---|---|---|
startColor | Color | Color at the beginning of the particle's life. |
endColor | Color | Color at the end of the particle's life. |
minSpeed | pixelroot32::math::Scalar | Minimum initial speed. |
maxSpeed | pixelroot32::math::Scalar | Maximum initial speed. |
gravity | pixelroot32::math::Scalar | Gravity force applied to Y velocity each frame. |
friction | pixelroot32::math::Scalar | Air resistance factor (0.0 - 1.0) applied to velocity. |
minLife | uint8_t | Minimum lifetime in frames/ticks. |
maxLife | uint8_t | Maximum lifetime in frames/ticks. |
fadeColor | bool | If true, interpolates color from startColor to endColor. |
minAngleDeg | pixelroot32::math::Scalar | Minimum emission angle in degrees (0 = right). |
maxAngleDeg | pixelroot32::math::Scalar | Maximum emission angle in degrees. |
