pub struct Layer {
pub clip: AnimationId,
pub t: f32,
pub speed: f32,
pub weight: f32,
pub mask: LayerMask,
}Expand description
An override layer above the base animation. weight = 0 is inert,
weight = 1 lets the layer’s clip drive its masked joints wholesale.
Fields§
§clip: AnimationId§t: f32Local playhead; step advances it by speed * dt.
speed: f32§weight: f32§mask: LayerMaskImplementations§
Trait Implementations§
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more