Skip to main content

RibbonEmitter

Struct RibbonEmitter 

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

RIB_ — Ribbon emitter (v4–v9, 744–760 bytes)

Ribbon strip effect with per-particle lifetime, velocity, color/size curves, physics, noise, spline segments, variation channels, and smoothing/collision settings. Shares many fields with ParticleEmitter.

Implementations§

Source§

impl RibbonEmitter

Source

pub fn new() -> Self

§Panics

Panics if the native allocation fails.

Source

pub fn bone_index(&self) -> u16

Primary bone index

Source

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

Source

pub fn bone_index_fallback(&self) -> u16

Fallback bone index

Source

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

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) -> RibbonAdditionalFlag

Additional flags (v8+)

Source

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

Source

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

Initial ribbon segment 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 segment 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) -> u32

Kill radius

Source

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

Source

pub fn gravity_x(&self) -> f32

Gravity X component

Source

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

Source

pub fn gravity_y(&self) -> f32

Gravity Y component

Source

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

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)

Source

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

Source

pub fn color_mid_time(&self) -> f32

Color midpoint time (0–1)

Source

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

Source

pub fn alpha_mid_time(&self) -> f32

Alpha midpoint time (0–1)

Source

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

Source

pub fn rotation_mid_time(&self) -> f32

Rotation midpoint time (0–1)

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

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

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

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

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

Segment mass

Source

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

Source

pub fn mass_random(&self) -> f32

Random mass variation

Source

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

Source

pub fn mass_size_multiplier(&self) -> f32

Mass–size coupling

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

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

Source

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

Source

pub fn emitter_shape(&self) -> u32

Emitter shape type

Source

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

Source

pub fn ribbon_type(&self) -> RibbonType

Ribbon cross-section type

Source

pub fn set_ribbon_type(&mut self, value: RibbonType)

Source

pub fn divisions(&self) -> f32

Number of ribbon divisions

Source

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

Source

pub fn edges(&self) -> u32

Number of cross-section edges

Source

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

Source

pub fn inner_radius(&self) -> f32

Inner radius

Source

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

Source

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

Animated maximum ribbon length Borrows the field in place — no copy, no allocation.

Source

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

Source

pub fn spline_ribbons_len(&self) -> usize

Spline ribbon segments (SRIB)

Source

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

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

Source

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

Source

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

Iterate the elements, borrowing each in turn.

Source

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

Source

pub fn active(&self) -> Ref<'_, AnimRefU32>

Animated active state Borrows the field in place — no copy, no allocation.

Source

pub fn active_mut(&mut self) -> RefMut<'_, AnimRefU32>

Source

pub fn flags(&self) -> RibbonFlag

Ribbon emitter flags

Source

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

Source

pub fn size_smoothing(&self) -> InterpolationMode

Size interpolation mode

Source

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

Source

pub fn color_smoothing(&self) -> InterpolationMode

Color interpolation mode

Source

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

Source

pub fn friction(&self) -> f32

Friction coefficient

Source

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

Source

pub fn bounce(&self) -> f32

Bounce coefficient

Source

pub fn set_bounce(&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 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 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 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 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 overlay(&self) -> Ref<'_, AnimRefF32>

Animated overlay effect Borrows the field in place — no copy, no allocation.

Source

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

Trait Implementations§

Source§

impl Debug for RibbonEmitter

Source§

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

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

impl Default for RibbonEmitter

Source§

fn default() -> Self

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

impl Drop for RibbonEmitter

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 RibbonEmitter

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.