BaseParticleData
ts
type BaseParticleData = object;Base data structure for emitter particles.
Properties
accelerationX
ts
accelerationX: number;Acceleration components of the particle.
accelerationY
ts
accelerationY: number;Acceleration Y component of the particle.
age
ts
age: number;Current age of the particle in milliseconds.
agePercent
ts
agePercent: number;Age percent of the particle's lifetime (0.0 to 1.0).
directionVectorX
ts
directionVectorX: number;Direction vector components of the particle.
directionVectorY
ts
directionVectorY: number;Direction vector Y component of the particle.
maxLifetime
ts
maxLifetime: number;Maximum lifetime of the particle in milliseconds.
oneOverLifetime
ts
oneOverLifetime: number;One over the lifetime of the particle (1.0 / maxLifetime).
textureConfig
ts
textureConfig: object;Texture animation configuration for the particle.
duration
ts
duration: number;Duration of the texture animation in milliseconds.
elapsed
ts
elapsed: number;Elapsed time of the texture animation in milliseconds.
framerate
ts
framerate: number;Frame rate of the texture animation (frames per second).
loop
ts
loop: boolean;Whether the texture animation should loop.
textures
ts
textures: Texture[];Array of textures used for the particle.
velocityX
ts
velocityX: number;Velocity components of the particle.
velocityY
ts
velocityY: number;