Enum amethyst_animation::AnimationCommand[][src]

pub enum AnimationCommand<T> where
    T: AnimationSampling
{ Start, Step(StepDirection), SetInputValue(f32), SetBlendWeights(Vec<(usize, T::Channel, f32)>), Pause, Abort, Init, }

Animation command

Type parameters:

  • T: the component type that the animation should be applied to

Variants

Start the animation, or unpause if it's paused

Step the animation forward/backward (move to the next/previous input value in sequence)

Forcibly set current interpolation point for the animation, value in seconds

Set blend weights

Pause the animation

Abort the animation, will cause the control object to be removed from the world

Only initialise the animation without starting it

Trait Implementations

impl<T: Clone> Clone for AnimationCommand<T> where
    T: AnimationSampling,
    T::Channel: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for AnimationCommand<T> where
    T: AnimationSampling,
    T::Channel: Debug
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for AnimationCommand<T> where
    <T as AnimationSampling>::Channel: Send

impl<T> Sync for AnimationCommand<T> where
    <T as AnimationSampling>::Channel: Sync