Skip to main content

ParticleEmitter

Struct ParticleEmitter 

Source
pub struct ParticleEmitter { /* private fields */ }
Expand description

PAR_ — Particle emitter (v10–v24, 1300–1496 bytes)

The most complex M3 chunk type. Contains bone/material binding, emission shape/rate, per-particle lifetime/velocity/color/size/rotation curves, physics (drag, mass, forces), noise, collision, flipbook, variation channels, spline data, LOD, trails, and splat references. Version extensions add additional flags, force multipliers, UV transforms, phase shift, and ribbon-on-bounce parameters.

Implementations§

Source§

impl ParticleEmitter

Source

pub fn new() -> Self

§Panics

Panics if the native allocation fails.

Source

pub fn bone_index(&self) -> u32

Index into BONE array

Source

pub fn set_bone_index(&mut self, value: u32)

Source

pub fn material_index(&self) -> u32

Index into MATM material map array

Source

pub fn set_material_index(&mut self, value: u32)

Source

pub fn additional_flags(&self) -> ParticleAdditionalFlag

Source

pub fn set_additional_flags(&mut self, value: ParticleAdditionalFlag)

Source

pub fn initial_speed(&self) -> Ref<'_, AnimRefF32>

Initial particle speed Borrows the field in place — no copy, no allocation.

Source

pub fn initial_speed_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn initial_speed_random(&self) -> Ref<'_, AnimRefF32>

Random speed variation Borrows the field in place — no copy, no allocation.

Source

pub fn initial_speed_random_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn initial_yaw(&self) -> Ref<'_, AnimRefF32>

Initial yaw angle Borrows the field in place — no copy, no allocation.

Source

pub fn initial_yaw_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn initial_pitch(&self) -> Ref<'_, AnimRefF32>

Initial pitch angle Borrows the field in place — no copy, no allocation.

Source

pub fn initial_pitch_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn initial_horizontal(&self) -> Ref<'_, AnimRefF32>

Initial horizontal spread Borrows the field in place — no copy, no allocation.

Source

pub fn initial_horizontal_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn initial_vertical(&self) -> Ref<'_, AnimRefF32>

Initial vertical spread Borrows the field in place — no copy, no allocation.

Source

pub fn initial_vertical_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn lifetime(&self) -> Ref<'_, AnimRefF32>

Base particle lifetime Borrows the field in place — no copy, no allocation.

Source

pub fn lifetime_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn lifetime_random(&self) -> Ref<'_, AnimRefF32>

Random lifetime variation Borrows the field in place — no copy, no allocation.

Source

pub fn lifetime_random_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn kill_radius(&self) -> f32

Kill radius (particles beyond this are destroyed)

Source

pub fn set_kill_radius(&mut self, value: f32)

Source

pub fn gravity_x(&self) -> u32

Gravity X component (expected 0)

Source

pub fn set_gravity_x(&mut self, value: u32)

Source

pub fn gravity_y(&self) -> u32

Gravity Y component (expected 0)

Source

pub fn set_gravity_y(&mut self, value: u32)

Source

pub fn gravity(&self) -> f32

Gravity Z component

Source

pub fn set_gravity(&mut self, value: f32)

Source

pub fn size_mid_time(&self) -> f32

Size midpoint time (0–1, v12+)

Source

pub fn set_size_mid_time(&mut self, value: f32)

Source

pub fn color_mid_time(&self) -> f32

Color midpoint time (0–1, v12+)

Source

pub fn set_color_mid_time(&mut self, value: f32)

Source

pub fn alpha_mid_time(&self) -> f32

Alpha midpoint time (0–1, v12+)

Source

pub fn set_alpha_mid_time(&mut self, value: f32)

Source

pub fn rotation_mid_time(&self) -> f32

Rotation midpoint time (0–1, v12+)

Source

pub fn set_rotation_mid_time(&mut self, value: f32)

Source

pub fn size_mid_hold_time(&self) -> f32

Size hold time at midpoint (v14+)

Source

pub fn set_size_mid_hold_time(&mut self, value: f32)

Source

pub fn color_mid_hold_time(&self) -> f32

Color hold time at midpoint (v14+)

Source

pub fn set_color_mid_hold_time(&mut self, value: f32)

Source

pub fn alpha_mid_hold_time(&self) -> f32

Alpha hold time at midpoint (v14+)

Source

pub fn set_alpha_mid_hold_time(&mut self, value: f32)

Source

pub fn rotation_mid_hold_time(&self) -> f32

Rotation hold time at midpoint (v14+)

Source

pub fn set_rotation_mid_hold_time(&mut self, value: f32)

Source

pub fn size_animation(&self) -> Ref<'_, AnimRefVector3f>

Size curve (start, mid, end) Borrows the field in place — no copy, no allocation.

Source

pub fn size_animation_mut(&mut self) -> RefMut<'_, AnimRefVector3f>

Source

pub fn rotation_animation(&self) -> Ref<'_, AnimRefVector3f>

Rotation curve (start, mid, end) Borrows the field in place — no copy, no allocation.

Source

pub fn rotation_animation_mut(&mut self) -> RefMut<'_, AnimRefVector3f>

Source

pub fn color_start(&self) -> Ref<'_, AnimRefM3ColorBGRA>

Color at birth Borrows the field in place — no copy, no allocation.

Source

pub fn color_start_mut(&mut self) -> RefMut<'_, AnimRefM3ColorBGRA>

Source

pub fn color_mid(&self) -> Ref<'_, AnimRefM3ColorBGRA>

Color at midpoint Borrows the field in place — no copy, no allocation.

Source

pub fn color_mid_mut(&mut self) -> RefMut<'_, AnimRefM3ColorBGRA>

Source

pub fn color_end(&self) -> Ref<'_, AnimRefM3ColorBGRA>

Color at death Borrows the field in place — no copy, no allocation.

Source

pub fn color_end_mut(&mut self) -> RefMut<'_, AnimRefM3ColorBGRA>

Source

pub fn drag(&self) -> f32

Air drag coefficient

Source

pub fn set_drag(&mut self, value: f32)

Source

pub fn mass(&self) -> f32

Particle mass

Source

pub fn set_mass(&mut self, value: f32)

Source

pub fn mass_random(&self) -> f32

Random mass variation multiplier

Source

pub fn set_mass_random(&mut self, value: f32)

Source

pub fn mass_size_multiplier(&self) -> f32

Mass–size coupling (v12+)

Source

pub fn set_mass_size_multiplier(&mut self, value: f32)

Source

pub fn local_forces(&self) -> u16

Local force channel bitmask

Source

pub fn set_local_forces(&mut self, value: u16)

Source

pub fn world_forces(&self) -> u16

World force channel bitmask

Source

pub fn set_world_forces(&mut self, value: u16)

Source

pub fn local_forces_fallback(&self) -> u16

Fallback local force channels

Source

pub fn set_local_forces_fallback(&mut self, value: u16)

Source

pub fn world_forces_fallback(&self) -> u16

Fallback world force channels

Source

pub fn set_world_forces_fallback(&mut self, value: u16)

Source

pub fn world_forces_mass_multiplier(&self) -> f32

World force mass multiplier (v24+)

Source

pub fn set_world_forces_mass_multiplier(&mut self, value: f32)

Source

pub fn noise_amplitude(&self) -> f32

Noise displacement amplitude

Source

pub fn set_noise_amplitude(&mut self, value: f32)

Source

pub fn noise_frequency(&self) -> f32

Noise spatial frequency

Source

pub fn set_noise_frequency(&mut self, value: f32)

Source

pub fn noise_coherence(&self) -> f32

Noise temporal coherence

Source

pub fn set_noise_coherence(&mut self, value: f32)

Source

pub fn noise_edge(&self) -> f32

Noise edge sharpness

Source

pub fn set_noise_edge(&mut self, value: f32)

Source

pub fn index_plus_length(&self) -> u32

Index + length (v11+)

Source

pub fn set_index_plus_length(&mut self, value: u32)

Source

pub fn max_particles(&self) -> u32

Maximum live particle count

Source

pub fn set_max_particles(&mut self, value: u32)

Source

pub fn emission_rate(&self) -> Ref<'_, AnimRefF32>

Animated emission rate (particles/sec) Borrows the field in place — no copy, no allocation.

Source

pub fn emission_rate_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn emitter_shape(&self) -> EmitterShape

Emission shape

Source

pub fn set_emitter_shape(&mut self, value: EmitterShape)

Source

pub fn shape_outer(&self) -> Ref<'_, AnimRefVector3f>

Animated outer shape dimensions Borrows the field in place — no copy, no allocation.

Source

pub fn shape_outer_mut(&mut self) -> RefMut<'_, AnimRefVector3f>

Source

pub fn shape_inner(&self) -> Ref<'_, AnimRefVector3f>

Animated inner shape dimensions Borrows the field in place — no copy, no allocation.

Source

pub fn shape_inner_mut(&mut self) -> RefMut<'_, AnimRefVector3f>

Source

pub fn outer_radius(&self) -> Ref<'_, AnimRefF32>

Animated outer radius Borrows the field in place — no copy, no allocation.

Source

pub fn outer_radius_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn inner_radius(&self) -> Ref<'_, AnimRefF32>

Animated inner radius Borrows the field in place — no copy, no allocation.

Source

pub fn inner_radius_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn shape_regions(&self) -> &[u32]

Shape region indices (U32_, v14+), which mesh region from div to use Zero-copy view of the underlying std::vector.

Source

pub fn shape_regions_mut(&mut self) -> &mut [u32]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_shape_regions(&mut self, values: &[u32])

Source

pub fn resize_shape_regions(&mut self, count: usize)

Source

pub fn velocity_type(&self) -> u32

Velocity randomization type

Source

pub fn set_velocity_type(&mut self, value: u32)

Source

pub fn size_random_enable(&self) -> u32

Enable size randomization

Source

pub fn set_size_random_enable(&mut self, value: u32)

Source

pub fn size_random_animation(&self) -> Ref<'_, AnimRefVector3f>

Random size curve Borrows the field in place — no copy, no allocation.

Source

pub fn size_random_animation_mut(&mut self) -> RefMut<'_, AnimRefVector3f>

Source

pub fn rotation_random_enable(&self) -> u32

Enable rotation randomization

Source

pub fn set_rotation_random_enable(&mut self, value: u32)

Source

pub fn rotation_random_animation(&self) -> Ref<'_, AnimRefVector3f>

Random rotation curve Borrows the field in place — no copy, no allocation.

Source

pub fn rotation_random_animation_mut(&mut self) -> RefMut<'_, AnimRefVector3f>

Source

pub fn color_random_enable(&self) -> u32

Enable color randomization

Source

pub fn set_color_random_enable(&mut self, value: u32)

Source

pub fn color_start_random(&self) -> Ref<'_, AnimRefM3ColorBGRA>

Random color at birth Borrows the field in place — no copy, no allocation.

Source

pub fn color_start_random_mut(&mut self) -> RefMut<'_, AnimRefM3ColorBGRA>

Source

pub fn color_mid_random(&self) -> Ref<'_, AnimRefM3ColorBGRA>

Random color at midpoint Borrows the field in place — no copy, no allocation.

Source

pub fn color_mid_random_mut(&mut self) -> RefMut<'_, AnimRefM3ColorBGRA>

Source

pub fn color_end_random(&self) -> Ref<'_, AnimRefM3ColorBGRA>

Random color at death Borrows the field in place — no copy, no allocation.

Source

pub fn color_end_random_mut(&mut self) -> RefMut<'_, AnimRefM3ColorBGRA>

Source

pub fn alpha_random_enable(&self) -> u32

Enable alpha randomization

Source

pub fn set_alpha_random_enable(&mut self, value: u32)

Source

pub fn squirt_amount(&self) -> Ref<'_, AnimRefU16>

Animated squirt burst count Borrows the field in place — no copy, no allocation.

Source

pub fn squirt_amount_mut(&mut self) -> RefMut<'_, AnimRefU16>

Source

pub fn flipbook_start_init_index(&self) -> u8

Flipbook start initial frame index

Source

pub fn set_flipbook_start_init_index(&mut self, value: u8)

Source

pub fn flipbook_start_stop_index(&self) -> u8

Flipbook start stop frame index

Source

pub fn set_flipbook_start_stop_index(&mut self, value: u8)

Source

pub fn flipbook_end_init_index(&self) -> u8

Flipbook end initial frame index

Source

pub fn set_flipbook_end_init_index(&mut self, value: u8)

Source

pub fn flipbook_end_stop_index(&self) -> u8

Flipbook end stop frame index

Source

pub fn set_flipbook_end_stop_index(&mut self, value: u8)

Source

pub fn flipbook_mid_time(&self) -> f32

Flipbook midpoint time (0–1)

Source

pub fn set_flipbook_mid_time(&mut self, value: f32)

Source

pub fn flipbook_columns(&self) -> u16

Flipbook grid columns

Source

pub fn set_flipbook_columns(&mut self, value: u16)

Source

pub fn flipbook_rows(&self) -> u16

Flipbook grid rows

Source

pub fn set_flipbook_rows(&mut self, value: u16)

Source

pub fn flipbook_column_fraction(&self) -> f32

Column fraction (v12+)

Source

pub fn set_flipbook_column_fraction(&mut self, value: f32)

Source

pub fn flipbook_row_fraction(&self) -> f32

Row fraction (v12+)

Source

pub fn set_flipbook_row_fraction(&mut self, value: f32)

Source

pub fn bounce(&self) -> f32

Bounce coefficient

Source

pub fn set_bounce(&mut self, value: f32)

Source

pub fn friction(&self) -> f32

Friction coefficient

Source

pub fn set_friction(&mut self, value: f32)

Source

pub fn collision_spawn_index(&self) -> i32

Emitter index to spawn on collision (-1 = none)

Source

pub fn set_collision_spawn_index(&mut self, value: i32)

Source

pub fn collision_spawn_min(&self) -> u32

Minimum spawn count on collision

Source

pub fn set_collision_spawn_min(&mut self, value: u32)

Source

pub fn collision_spawn_max(&self) -> u32

Maximum spawn count on collision

Source

pub fn set_collision_spawn_max(&mut self, value: u32)

Source

pub fn collision_spawn_chance(&self) -> f32

Spawn probability on collision

Source

pub fn set_collision_spawn_chance(&mut self, value: f32)

Source

pub fn collision_spawn_energy(&self) -> f32

Spawn energy transfer

Source

pub fn set_collision_spawn_energy(&mut self, value: f32)

Source

pub fn collision_die_bounce(&self) -> u32

Die after N bounces

Source

pub fn set_collision_die_bounce(&mut self, value: u32)

Source

pub fn instance_type(&self) -> ParticleInstanceType

Visual type → shader b_iInstanceType

Source

pub fn set_instance_type(&mut self, value: ParticleInstanceType)

Source

pub fn tail_length(&self) -> f32

Tail length for Tail/Trail types

Source

pub fn set_tail_length(&mut self, value: f32)

Source

pub fn instance_angle(&self) -> Vector3f

Instance orientation angles

Source

pub fn set_instance_angle(&mut self, value: Vector3f)

Source

pub fn instance_distance(&self) -> f32

Instance distance (v17+)

Source

pub fn set_instance_distance(&mut self, value: f32)

Source

pub fn pitch_type(&self) -> u32

Pitch variation type

Source

pub fn set_pitch_type(&mut self, value: u32)

Source

pub fn pitch_amplitude(&self) -> Ref<'_, AnimRefF32>

Pitch variation amplitude Borrows the field in place — no copy, no allocation.

Source

pub fn pitch_amplitude_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn pitch_frequency(&self) -> Ref<'_, AnimRefF32>

Pitch variation frequency Borrows the field in place — no copy, no allocation.

Source

pub fn pitch_frequency_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn yaw_type(&self) -> u32

Yaw variation type

Source

pub fn set_yaw_type(&mut self, value: u32)

Source

pub fn yaw_amplitude(&self) -> Ref<'_, AnimRefF32>

Yaw variation amplitude Borrows the field in place — no copy, no allocation.

Source

pub fn yaw_amplitude_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn yaw_frequency(&self) -> Ref<'_, AnimRefF32>

Yaw variation frequency Borrows the field in place — no copy, no allocation.

Source

pub fn yaw_frequency_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn speed_type(&self) -> u32

Speed variation type

Source

pub fn set_speed_type(&mut self, value: u32)

Source

pub fn speed_amplitude(&self) -> Ref<'_, AnimRefF32>

Speed variation amplitude Borrows the field in place — no copy, no allocation.

Source

pub fn speed_amplitude_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn speed_frequency(&self) -> Ref<'_, AnimRefF32>

Speed variation frequency Borrows the field in place — no copy, no allocation.

Source

pub fn speed_frequency_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn size_type(&self) -> u32

Size variation type

Source

pub fn set_size_type(&mut self, value: u32)

Source

pub fn size_amplitude(&self) -> Ref<'_, AnimRefF32>

Size variation amplitude Borrows the field in place — no copy, no allocation.

Source

pub fn size_amplitude_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn size_frequency(&self) -> Ref<'_, AnimRefF32>

Size variation frequency Borrows the field in place — no copy, no allocation.

Source

pub fn size_frequency_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn alpha_type(&self) -> u32

Alpha variation type

Source

pub fn set_alpha_type(&mut self, value: u32)

Source

pub fn alpha_amplitude(&self) -> Ref<'_, AnimRefF32>

Alpha variation amplitude Borrows the field in place — no copy, no allocation.

Source

pub fn alpha_amplitude_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn alpha_frequency(&self) -> Ref<'_, AnimRefF32>

Alpha variation frequency Borrows the field in place — no copy, no allocation.

Source

pub fn alpha_frequency_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn color_type(&self) -> u32

Color variation type

Source

pub fn set_color_type(&mut self, value: u32)

Source

pub fn color_amplitude(&self) -> Ref<'_, AnimRefF32>

Color variation amplitude Borrows the field in place — no copy, no allocation.

Source

pub fn color_amplitude_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn color_frequency(&self) -> Ref<'_, AnimRefF32>

Color variation frequency Borrows the field in place — no copy, no allocation.

Source

pub fn color_frequency_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn rotation_type(&self) -> u32

Rotation variation type

Source

pub fn set_rotation_type(&mut self, value: u32)

Source

pub fn rotation_amplitude(&self) -> Ref<'_, AnimRefF32>

Rotation variation amplitude Borrows the field in place — no copy, no allocation.

Source

pub fn rotation_amplitude_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn rotation_frequency(&self) -> Ref<'_, AnimRefF32>

Rotation variation frequency Borrows the field in place — no copy, no allocation.

Source

pub fn rotation_frequency_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn horizontal_type(&self) -> u32

Horizontal variation type

Source

pub fn set_horizontal_type(&mut self, value: u32)

Source

pub fn horizontal_amplitude(&self) -> Ref<'_, AnimRefF32>

Horizontal variation amplitude Borrows the field in place — no copy, no allocation.

Source

pub fn horizontal_amplitude_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn horizontal_frequency(&self) -> Ref<'_, AnimRefF32>

Horizontal variation frequency Borrows the field in place — no copy, no allocation.

Source

pub fn horizontal_frequency_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn vertical_type(&self) -> u32

Vertical variation type

Source

pub fn set_vertical_type(&mut self, value: u32)

Source

pub fn vertical_amplitude(&self) -> Ref<'_, AnimRefF32>

Vertical variation amplitude Borrows the field in place — no copy, no allocation.

Source

pub fn vertical_amplitude_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn vertical_frequency(&self) -> Ref<'_, AnimRefF32>

Vertical variation frequency; Borrows the field in place — no copy, no allocation.

Source

pub fn vertical_frequency_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn particle_velocity(&self) -> Ref<'_, AnimRefF32>

Animated parent velocity influence Borrows the field in place — no copy, no allocation.

Source

pub fn particle_velocity_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn phase_shift(&self) -> Ref<'_, AnimRefF32>

Animated phase shift (v22+) Borrows the field in place — no copy, no allocation.

Source

pub fn phase_shift_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn flags(&self) -> ParticleFlag

Main particle flags

Source

pub fn set_flags(&mut self, value: ParticleFlag)

Source

pub fn rotation_flags(&self) -> ParticleRotationFlag

Rotation flags (v18+)

Source

pub fn set_rotation_flags(&mut self, value: ParticleRotationFlag)

Source

pub fn color_smoothing(&self) -> InterpolationMode

Source

pub fn set_color_smoothing(&mut self, value: InterpolationMode)

Source

pub fn size_smoothing(&self) -> InterpolationMode

Source

pub fn set_size_smoothing(&mut self, value: InterpolationMode)

Source

pub fn rotation_smoothing(&self) -> InterpolationMode

Source

pub fn set_rotation_smoothing(&mut self, value: InterpolationMode)

Source

pub fn alpha_threshold(&self) -> Ref<'_, AnimRefF32>

Animated alpha threshold Borrows the field in place — no copy, no allocation.

Source

pub fn alpha_threshold_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn uv_offset(&self) -> Ref<'_, AnimRefVector2f>

Animated UV offset Borrows the field in place — no copy, no allocation.

Source

pub fn uv_offset_mut(&mut self) -> RefMut<'_, AnimRefVector2f>

Source

pub fn uv_angle(&self) -> Ref<'_, AnimRefVector3f>

Animated UV rotation angles Borrows the field in place — no copy, no allocation.

Source

pub fn uv_angle_mut(&mut self) -> RefMut<'_, AnimRefVector3f>

Source

pub fn uv_tiling(&self) -> Ref<'_, AnimRefVector2f>

Animated UV tiling Borrows the field in place — no copy, no allocation.

Source

pub fn uv_tiling_mut(&mut self) -> RefMut<'_, AnimRefVector2f>

Source

pub fn spline_line_data_len(&self) -> usize

Spline control points (SVC3)

Source

pub fn spline_line_data(&self, index: usize) -> Option<Ref<'_, AnimRefVector3f>>

Borrows element index in place. None when out of range.

Source

pub fn spline_line_data_mut( &mut self, index: usize, ) -> Option<RefMut<'_, AnimRefVector3f>>

Source

pub fn spline_line_data_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, AnimRefVector3f>>

Iterate the elements, borrowing each in turn.

Source

pub fn resize_spline_line_data(&mut self, count: usize)

Source

pub fn wind_multiplier(&self) -> f32

Wind influence multiplier

Source

pub fn set_wind_multiplier(&mut self, value: f32)

Source

pub fn lod_reduce(&self) -> u32

LOD reduction level

Source

pub fn set_lod_reduce(&mut self, value: u32)

Source

pub fn lod_cut(&self) -> u32

LOD cut-off level

Source

pub fn set_lod_cut(&mut self, value: u32)

Source

pub fn lower_bound(&self) -> Ref<'_, AnimRefF32>

Animated lower bound Borrows the field in place — no copy, no allocation.

Source

pub fn lower_bound_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn upper_bound(&self) -> Ref<'_, AnimRefF32>

Animated upper bound Borrows the field in place — no copy, no allocation.

Source

pub fn upper_bound_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn trail_chance(&self) -> f32

Trail spawn probability

Source

pub fn set_trail_chance(&mut self, value: f32)

Source

pub fn trail_emission_rate(&self) -> Ref<'_, AnimRefF32>

Animated trail emission rate Borrows the field in place — no copy, no allocation.

Source

pub fn trail_emission_rate_mut(&mut self) -> RefMut<'_, AnimRefF32>

Source

pub fn splat_projection_index(&self) -> i32

Linked projector index (-1 = none)

Source

pub fn set_splat_projection_index(&mut self, value: i32)

Source

pub fn splat_chance(&self) -> f32

Splat spawn probability

Source

pub fn set_splat_chance(&mut self, value: f32)

Source

pub fn copy_indices(&self) -> &[u32]

Emitter copy indices (U32_) Zero-copy view of the underlying std::vector.

Source

pub fn copy_indices_mut(&mut self) -> &mut [u32]

Zero-copy mutable view. Resize first — the borrow forbids it after.

Source

pub fn set_copy_indices(&mut self, values: &[u32])

Source

pub fn resize_copy_indices(&mut self, count: usize)

Source

pub fn spawn_ribbon_on_bounce_chance(&self) -> f32

Ribbon spawn probability on bounce (v23+)

Source

pub fn set_spawn_ribbon_on_bounce_chance(&mut self, value: f32)

Index into RIB_ array (-1 = none, v23+)

Trait Implementations§

Source§

impl Debug for ParticleEmitter

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ParticleEmitter

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Drop for ParticleEmitter

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl Send for ParticleEmitter

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.