Struct amethyst_animation::AnimationControlSet[][src]

pub struct AnimationControlSet<I, T> where
    T: AnimationSampling
{ pub animations: Vec<(I, AnimationControl<T>)>, // some fields omitted }

Contains all currently running animations for an entity.

Have support for running multiple animations, will do linear blending between all active animations. The target component specifies if it can be blended, if it can't, the last added animation wins.

Type parameters:

  • I: identifier type for running animations, only one animation can be run at the same time with the same id
  • T: the component type that the animation should be applied to

Fields

Methods

impl<I, T> AnimationControlSet<I, T> where
    I: PartialEq,
    T: AnimationSampling
[src]

Is the animation set empty?

Remove animation from set

This should be used with care, as this will leave all linked samplers in place. If in doubt, use abort() instead.

Start animation if it exists

Pause animation if it exists

Toggle animation if it exists

Set animation rate

Step animation

Set animation input value (point of interpolation)

Set blend weights

Abort animation

Add animation with the given id, unless it already exists

Add deferred animation with the given id, unless it already exists

Insert an animation directly

Check if there is an animation with the given id in the set

Trait Implementations

impl<I: Clone, T: Clone> Clone for AnimationControlSet<I, T> where
    T: AnimationSampling
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<I: Debug, T: Debug> Debug for AnimationControlSet<I, T> where
    T: AnimationSampling
[src]

Formats the value using the given formatter. Read more

impl<I, T> Default for AnimationControlSet<I, T> where
    T: AnimationSampling
[src]

Returns the "default value" for a type. Read more

impl<I, T> Component for AnimationControlSet<I, T> where
    I: Send + Sync + 'static,
    T: AnimationSampling
[src]

Associated storage type for this component.

Auto Trait Implementations

impl<I, T> Send for AnimationControlSet<I, T> where
    I: Send,
    <T as AnimationSampling>::Channel: Send,
    <T as AnimationSampling>::Primitive: Send

impl<I, T> Sync for AnimationControlSet<I, T> where
    I: Sync,
    <T as AnimationSampling>::Channel: Sync,
    <T as AnimationSampling>::Primitive: Sync