Struct amethyst_animation::SamplerControl [−][src]
pub struct SamplerControl<T> where
T: AnimationSampling, { pub control_id: u64, pub channel: T::Channel, pub blend_weight: f32, pub sampler: Handle<Sampler<T::Primitive>>, pub state: ControlState, pub end: EndControl, pub after: T::Primitive, pub rate_multiplier: f32, }
Control a single active sampler
Type parameters:
T: the component type that the sampling should be applied to
Fields
control_id: u64
Id of the animation control this entry belongs to
channel: T::Channel
Channel
blend_weight: f32
Blend weight
sampler: Handle<Sampler<T::Primitive>>
Sampler
state: ControlState
State of sampling
end: EndControl
What to do when sampler ends
after: T::Primitive
What the transform should return to after end
rate_multiplier: f32
Control the rate of animation, default is 1.0
Trait Implementations
impl<T: Clone> Clone for SamplerControl<T> where
T: AnimationSampling,
T::Channel: Clone,
T::Primitive: Clone, [src]
impl<T: Clone> Clone for SamplerControl<T> where
T: AnimationSampling,
T::Channel: Clone,
T::Primitive: Clone, fn clone(&self) -> SamplerControl<T>[src]
fn clone(&self) -> SamplerControl<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl<T> Send for SamplerControl<T> where
<T as AnimationSampling>::Channel: Send,
<T as AnimationSampling>::Primitive: Send,
impl<T> Send for SamplerControl<T> where
<T as AnimationSampling>::Channel: Send,
<T as AnimationSampling>::Primitive: Send, impl<T> Sync for SamplerControl<T> where
<T as AnimationSampling>::Channel: Sync,
<T as AnimationSampling>::Primitive: Sync,
impl<T> Sync for SamplerControl<T> where
<T as AnimationSampling>::Channel: Sync,
<T as AnimationSampling>::Primitive: Sync,