pub struct ClipInstance<T: Transform> {
    pub clip: Rc<AnimationClip<T>>,
    pub start_time: f32,
    pub playback_rate: f32,
    pub time_offset: f32,
}
Expand description

An instance of an AnimationClip which tracks playback parameters

Fields

clip: Rc<AnimationClip<T>>

Shared clip reference

start_time: f32

Controller clock time at animation start

playback_rate: f32

Playback rate modifier, where 1.0 is original speed

time_offset: f32

Used to account for changes in playback rate

Implementations

Adjust the playback rate of the clip without affecting the value of get_local_time for a given global time.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.