pub struct ParticleSystem {Show 29 fields
pub instanced: bool,
pub instances: u32,
pub max_particles: u32,
pub material: Option<String>,
pub rate: f32,
pub rate_change: f32,
pub rate_scale: f32,
pub duration: i64,
pub direction: [f32; 3],
pub spawn_size: f32,
pub spawn_box: [f32; 3],
pub cone: [f32; 2],
pub speed: [f32; 2],
pub force_scale: f32,
pub damping: f32,
pub rotation: [f32; 2],
pub spin: [f32; 2],
pub spin_change: f32,
pub spin_damping: f32,
pub life: [f32; 2],
pub force_amount: f32,
pub force: [f32; 3],
pub size: [f32; 2],
pub growth: f32,
pub growth_damping: f32,
pub colors: [u32; 2],
pub color_span: [f32; 2],
pub fade_in: i64,
pub fade_out: i64,
}Expand description
A particle system: an emitter of quads that face the camera (smoke, fire, dust, snow). Times are in microseconds. See docs/PARTICLES.md.
Original: Graphics::ParticleSystem::Serialize, Runtime 0x1800a5c70, after the
Graphics::Particle block.
Original: Runtime 0x180106790.
Fields§
§instanced: boolParticle: whether it is instanced.
instances: u32Particle: the shared instance count.
max_particles: u32Particle: the most particles alive.
material: Option<String>Particle: the MaterialInstance.
rate: f32Particles per second.
rate_change: f32The change of the rate per second squared, multiplied by rate_scale.
rate_scale: f32The factor of rate_change.
duration: i64How long it emits (0 for ever).
direction: [f32; 3]The emission direction (model space).
spawn_size: f32The spawn box’s size: each axis spans ± axis × size / 2.
spawn_box: [f32; 3]The spawn box’s axes.
cone: [f32; 2]The emission cone’s angles (degrees).
speed: [f32; 2]Speed (base, ± range).
force_scale: f32How strongly the force acts.
damping: f32The share of the velocity kept at each update.
rotation: [f32; 2]Rotation (degrees, base ± range).
spin: [f32; 2]Spin (degrees/s, base ± range, either way).
spin_change: f32The change of the spin.
spin_damping: f32The share of the spin kept at each update.
life: [f32; 2]Life (seconds, base ± range).
force_amount: f32The strength of the force.
force: [f32; 3]The force’s direction (for example the wind).
size: [f32; 2]The size (base ± range).
growth: f32How fast the size grows.
growth_damping: f32The share of the growth kept at each update.
colors: [u32; 2]Start and end colours (BGRA bytes).
color_span: [f32; 2]The part of life the colour moves over.
fade_in: i64How long it fades in.
fade_out: i64How long it fades out.
Trait Implementations§
Source§impl Clone for ParticleSystem
impl Clone for ParticleSystem
Source§fn clone(&self) -> ParticleSystem
fn clone(&self) -> ParticleSystem
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more