Struct vox_geometry_rust::particle_emitter_set2::ParticleEmitterSet2 [−][src]
pub struct ParticleEmitterSet2 { /* fields omitted */ }
Expand description
Implementations
impl ParticleEmitterSet2
[src]
impl ParticleEmitterSet2
[src]pub fn new_default() -> ParticleEmitterSet2
[src]
pub fn new_default() -> ParticleEmitterSet2
[src]Constructs an emitter.
pub fn new(emitters: Vec<ParticleEmitter2Ptr>) -> ParticleEmitterSet2
[src]
pub fn new(emitters: Vec<ParticleEmitter2Ptr>) -> ParticleEmitterSet2
[src]Constructs an emitter with sub-emitters.
pub fn add_emitter(&mut self, emitter: ParticleEmitter2Ptr)
[src]
pub fn add_emitter(&mut self, emitter: ParticleEmitter2Ptr)
[src]Adds sub-emitter.
pub fn set_on_begin_update_callback(&mut self, callback: OnBeginUpdateCallback)
[src]
pub fn set_on_begin_update_callback(&mut self, callback: OnBeginUpdateCallback)
[src]\brief Sets the callback function to be called when ParticleEmitter2::update function is invoked.
The callback function takes current simulation time in seconds unit. Use this callback to track any motion or state changes related to this emitter.
- parameter: callback The callback function.
Trait Implementations
impl ParticleEmitter2 for ParticleEmitterSet2
[src]
impl ParticleEmitter2 for ParticleEmitterSet2
[src]fn update(
&mut self,
current_time_in_seconds: f64,
time_interval_in_seconds: f64
)
[src]
fn update(
&mut self,
current_time_in_seconds: f64,
time_interval_in_seconds: f64
)
[src]Updates the emitter state from \p current_time_in_seconds to the following time-step. Read more
fn on_set_target(&self, particles: ParticleSystemData2Ptr)
[src]
fn on_set_target(&self, particles: ParticleSystemData2Ptr)
[src]Called when ParticleEmitter3::set_target is executed.
fn on_update(
&mut self,
current_time_in_seconds: f64,
time_interval_in_seconds: f64
)
[src]
fn on_update(
&mut self,
current_time_in_seconds: f64,
time_interval_in_seconds: f64
)
[src]Called when ParticleEmitter3::update is executed.
fn view(&self) -> &ParticleEmitter2Data
[src]
fn view_mut(&mut self) -> &mut ParticleEmitter2Data
[src]
fn target(&self) -> &Option<ParticleSystemData2Ptr>
[src]
fn target(&self) -> &Option<ParticleSystemData2Ptr>
[src]Returns the target particle system to emit.
fn set_target(&mut self, particles: ParticleSystemData2Ptr)
[src]
fn set_target(&mut self, particles: ParticleSystemData2Ptr)
[src]Sets the target particle system to emit.
fn is_enabled(&self) -> bool
[src]
fn is_enabled(&self) -> bool
[src]Returns true if the emitter is enabled.
fn set_is_enabled(&mut self, enabled: bool)
[src]
fn set_is_enabled(&mut self, enabled: bool)
[src]Sets true/false to enable/disable the emitter.
Auto Trait Implementations
impl RefUnwindSafe for ParticleEmitterSet2
impl Send for ParticleEmitterSet2
impl Sync for ParticleEmitterSet2
impl Unpin for ParticleEmitterSet2
impl UnwindSafe for ParticleEmitterSet2
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,