pub struct ParticleSystemData {Show 19 fields
pub name: String,
pub material_name: Option<String>,
pub x_tiles: u32,
pub y_tiles: u32,
pub max_particles: u32,
pub accel: [f32; 3],
pub pre_sim: f32,
pub drag: f32,
pub wind_mult: f32,
pub emitter_sources: Vec<[f32; 3]>,
pub particle_size: [f32; 2],
pub num_emitters: u32,
pub particle_life_range: [f32; 2],
pub particles_per_second: f32,
pub velocity_range: [f32; 2],
pub angle_range: f32,
pub scale_range: [f32; 2],
pub emitter_misc_flags: u32,
pub emitter_color: [f32; 4],
}Expand description
Minimal parsed particle system data.
Fields§
§name: String§material_name: Option<String>Material key name (texture for particles).
x_tiles: u32Texture atlas dimensions.
y_tiles: u32§max_particles: u32Maximum particle count.
accel: [f32; 3]Acceleration vector (gravity/wind).
pre_sim: f32Pre-simulation time (seconds). First frame runs sim for this duration.
drag: f32Drag factor. Per-frame: vel *= max(0, 1 + drag * dt). Negative = decelerate.
wind_mult: f32Wind multiplier for environmental wind effects.
emitter_sources: Vec<[f32; 3]>Emitter source positions (from plSimpleParticleGenerator).
particle_size: [f32; 2]Particle size (width, height) from generator.
num_emitters: u32Number of emitters parsed.
particle_life_range: [f32; 2]Generator particle lifetime range (min, max) in seconds.
particles_per_second: f32Particles per second emission rate.
velocity_range: [f32; 2]Velocity range (min, max) for spawned particles.
angle_range: f32Cone angle range (radians) for spawn direction jitter.
scale_range: [f32; 2]Scale range (min, max) for particle size variation.
emitter_misc_flags: u32Emitter miscFlags — orientation mode + normal mode. C++ ref: plParticleEmitter.h:106-129 kNormalViewFacing=0x100, kOrientationUp=0x10000000, kOrientationVelocityBased=0x20000000, kOrientationVelocityStretch=0x40000000
emitter_color: [f32; 4]Emitter color (RGBA). Applied to all particles from this emitter.
Trait Implementations§
Source§impl Clone for ParticleSystemData
impl Clone for ParticleSystemData
Source§fn clone(&self) -> ParticleSystemData
fn clone(&self) -> ParticleSystemData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more