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

Id of the animation control this entry belongs to

Channel

Blend weight

Sampler

State of sampling

What to do when sampler ends

What the transform should return to after end

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]

Returns a copy of the value. Read more

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> Sync for SamplerControl<T> where
    <T as AnimationSampling>::Channel: Sync,
    <T as AnimationSampling>::Primitive: Sync