pub struct AnimationStack {
pub layers: Vec<Layer>,
/* private fields */
}Expand description
Graphics::AnimationState with its blend stack, newest layer first. Each play pushes a
layer; the one it covers fades out over the group’s blend time, and the pose mixes them.
Fields§
§layers: Vec<Layer>The layers, newest first.
Implementations§
Source§impl AnimationStack
impl AnimationStack
Sourcepub fn play(&mut self, group: &AnimationGroup, clip: usize, start: i64)
pub fn play(&mut self, group: &AnimationGroup, clip: usize, start: i64)
AnimationState::PlayAnimation. A looping clip already on top keeps its time (speed back to
1). Otherwise the top layer starts fading over the blend time from its clip to clip and
the new layer goes on top; a top layer never updated is replaced instead, the one below
taking the blend.
Original: Runtime 0x1801007e0.
Sourcepub fn update(&mut self, group: &AnimationGroup, dt: i64) -> Vec<usize>
pub fn update(&mut self, group: &AnimationGroup, dt: i64) -> Vec<usize>
AnimationState::Update with UpdateNodes: the pose at the old clocks, the oldest layer’s
first and each newer one mixed over it by the older layer’s share left (Quaternion::Lerp
and a linear translation); then every clock advances (only the newest fires its events), and
the fading layers count down, a layer leaving once less than a tick is left. Returns the
newest layer’s events.
Original: Runtime 0x1801003b0, Runtime 0x1800ff4b0.
Trait Implementations§
Source§impl Clone for AnimationStack
impl Clone for AnimationStack
Source§fn clone(&self) -> AnimationStack
fn clone(&self) -> AnimationStack
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more