Skip to main content

ParticleEmitter

Struct ParticleEmitter 

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

Implementations§

Source§

impl ParticleEmitter

Source

pub fn new() -> Self

§Panics

Panics if the native allocation fails.

Source

pub fn particle_id(&self) -> u32

Source

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

Source

pub fn flags(&self) -> ParticleFlag

Source

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

Source

pub fn position(&self) -> Vector3f

Source

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

Source

pub fn bone_id(&self) -> u16

Source

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

Source

pub fn particle_model_filename(&self) -> String

Source

pub fn set_particle_model_filename(&mut self, value: &str)

Source

pub fn child_emitters_model_filename(&self) -> String

Source

pub fn set_child_emitters_model_filename(&mut self, value: &str)

Source

pub fn blending_type(&self) -> ParticleBlending

Source

pub fn set_blending_type(&mut self, value: ParticleBlending)

Source

pub fn emitter_type(&self) -> ParticleEmitterType

Source

pub fn set_emitter_type(&mut self, value: ParticleEmitterType)

Source

pub fn particle_color_index(&self) -> u16

Source

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

Source

pub fn texture_tilerotation(&self) -> i16

Source

pub fn set_texture_tilerotation(&mut self, value: i16)

Source

pub fn rows(&self) -> u16

Source

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

Source

pub fn columns(&self) -> u16

Source

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

Source

pub fn emission_speed(&self) -> Ref<'_, AnimationTrackF32>

Borrows the field in place — no copy, no allocation.

Source

pub fn emission_speed_mut(&mut self) -> RefMut<'_, AnimationTrackF32>

Source

pub fn speed_variation(&self) -> Ref<'_, AnimationTrackF32>

Borrows the field in place — no copy, no allocation.

Source

pub fn speed_variation_mut(&mut self) -> RefMut<'_, AnimationTrackF32>

Source

pub fn vertical_range(&self) -> Ref<'_, AnimationTrackF32>

Borrows the field in place — no copy, no allocation.

Source

pub fn vertical_range_mut(&mut self) -> RefMut<'_, AnimationTrackF32>

Source

pub fn horizontal_range(&self) -> Ref<'_, AnimationTrackF32>

Borrows the field in place — no copy, no allocation.

Source

pub fn horizontal_range_mut(&mut self) -> RefMut<'_, AnimationTrackF32>

Source

pub fn gravity(&self) -> Ref<'_, AnimationTrackF32>

Borrows the field in place — no copy, no allocation.

Source

pub fn gravity_mut(&mut self) -> RefMut<'_, AnimationTrackF32>

Source

pub fn lifespan(&self) -> Ref<'_, AnimationTrackF32>

Borrows the field in place — no copy, no allocation.

Source

pub fn lifespan_mut(&mut self) -> RefMut<'_, AnimationTrackF32>

Source

pub fn lifespan_variation(&self) -> f32

Source

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

Source

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

Borrows the field in place — no copy, no allocation.

Source

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

Source

pub fn emission_rate_variation(&self) -> f32

Source

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

Source

pub fn emission_area_width(&self) -> Ref<'_, AnimationTrackF32>

Borrows the field in place — no copy, no allocation.

Source

pub fn emission_area_width_mut(&mut self) -> RefMut<'_, AnimationTrackF32>

Source

pub fn emission_area_length(&self) -> Ref<'_, AnimationTrackF32>

Borrows the field in place — no copy, no allocation.

Source

pub fn emission_area_length_mut(&mut self) -> RefMut<'_, AnimationTrackF32>

Source

pub fn z_source(&self) -> Ref<'_, AnimationTrackF32>

Borrows the field in place — no copy, no allocation.

Source

pub fn z_source_mut(&mut self) -> RefMut<'_, AnimationTrackF32>

Source

pub fn color_track(&self) -> Ref<'_, ParticleAnimationTrackVector3f>

Borrows the field in place — no copy, no allocation.

Source

pub fn color_track_mut(&mut self) -> RefMut<'_, ParticleAnimationTrackVector3f>

Source

pub fn scale_track(&self) -> Ref<'_, ParticleAnimationTrackVector2f>

Borrows the field in place — no copy, no allocation.

Source

pub fn scale_track_mut(&mut self) -> RefMut<'_, ParticleAnimationTrackVector2f>

Source

pub fn scale_vary(&self) -> Vector2f

Source

pub fn set_scale_vary(&mut self, value: Vector2f)

Source

pub fn tail_length(&self) -> f32

Source

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

Source

pub fn twinkle_speed(&self) -> f32

Source

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

Source

pub fn twinkle_percent(&self) -> f32

Source

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

Source

pub fn twinkle_scale(&self) -> Vector2f

Source

pub fn set_twinkle_scale(&mut self, value: Vector2f)

Source

pub fn inherit_velocity_scale(&self) -> f32

Source

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

Source

pub fn drag(&self) -> f32

Source

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

Source

pub fn base_spin(&self) -> f32

Source

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

Source

pub fn base_spin_variation(&self) -> f32

Source

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

Source

pub fn spin_speed(&self) -> f32

Source

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

Source

pub fn spin_speed_variation(&self) -> f32

Source

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

Source

pub fn tumble(&self) -> Ref<'_, Box>

Borrows the field in place — no copy, no allocation.

Source

pub fn tumble_mut(&mut self) -> RefMut<'_, Box>

Source

pub fn wind_vector(&self) -> Vector3f

Source

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

Source

pub fn wind_time(&self) -> f32

Source

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

Source

pub fn follow_speed_1(&self) -> f32

Source

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

Source

pub fn follow_scale_1(&self) -> f32

Source

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

Source

pub fn follow_speed_2(&self) -> f32

Source

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

Source

pub fn follow_scale_2(&self) -> f32

Source

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

Source

pub fn spline_points(&self) -> &[Vector3f]

Zero-copy view of the underlying std::vector.

Source

pub fn spline_points_mut(&mut self) -> &mut [Vector3f]

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

Source

pub fn set_spline_points(&mut self, values: &[Vector3f])

Source

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

Source

pub fn enabled_in(&self) -> Ref<'_, AnimationTrackU8>

Borrows the field in place — no copy, no allocation.

Source

pub fn enabled_in_mut(&mut self) -> RefMut<'_, AnimationTrackU8>

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.