pub struct StateFade {
pub from_state: usize,
pub from_clock: f32,
pub elapsed_secs: f32,
pub duration_secs: f32,
}Expand description
An in-flight crossfade from the previous state. The outgoing state’s clock keeps advancing during the fade so its pose stays live rather than frozen.
Fields§
§from_state: usizeThe state being faded out of.
from_clock: f32The outgoing state’s clock, which keeps advancing during the fade.
elapsed_secs: f32Seconds elapsed since the fade started.
duration_secs: f32Duration in seconds.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StateFade
impl RefUnwindSafe for StateFade
impl Send for StateFade
impl Sync for StateFade
impl Unpin for StateFade
impl UnsafeUnpin for StateFade
impl UnwindSafe for StateFade
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