Skip to content

ParticleConfig

Struct

Source: 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

NameTypeDescription
startColorColorColor at the beginning of the particle's life.
endColorColorColor at the end of the particle's life.
minSpeedpixelroot32::math::ScalarMinimum initial speed.
maxSpeedpixelroot32::math::ScalarMaximum initial speed.
gravitypixelroot32::math::ScalarGravity force applied to Y velocity each frame.
frictionpixelroot32::math::ScalarAir resistance factor (0.0 - 1.0) applied to velocity.
minLifeuint8_tMinimum lifetime in frames/ticks.
maxLifeuint8_tMaximum lifetime in frames/ticks.
fadeColorboolIf true, interpolates color from startColor to endColor.
minAngleDegpixelroot32::math::ScalarMinimum emission angle in degrees (0 = right).
maxAngleDegpixelroot32::math::ScalarMaximum emission angle in degrees.

Released under the MIT License.