pub struct Animation {
pub name: String,
pub timestep: f32,
pub additive: bool,
pub length: u32,
pub lead_in: u32,
pub lead_out: u32,
pub weight: f32,
pub lanes: Vec<AnimationLane>,
}Expand description
Pre-recorded animation clip. Controls puppet parameters over time.
Fields§
§name: StringIdentifier name.
timestep: f32Duration of each frame in seconds (0.01666… ≈ 60fps).
additive: boolIf true, values are added to current state instead of replacing.
length: u32Total number of frames in the animation.
lead_in: u32Lead-in frames (fade in).
lead_out: u32Lead-out frames (fade out).
weight: f32Animation weight for blending (0.0-1.0).
lanes: Vec<AnimationLane>Tracks controlling individual parameters.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Animation
impl RefUnwindSafe for Animation
impl Send for Animation
impl Sync for Animation
impl Unpin for Animation
impl UnsafeUnpin for Animation
impl UnwindSafe for Animation
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