pub struct CompiledTransition {
pub to: usize,
pub duration_secs: f32,
pub exit_time: Option<f32>,
pub conditions: Vec<CompiledCondition>,
}Expand description
One compiled outgoing transition. Conditions AND together; an empty list is
always true (useful with exit_time alone).
Fields§
§to: usizeIndex of the state this transition enters.
duration_secs: f32Crossfade length between the outgoing and incoming state poses. Zero snaps.
exit_time: Option<f32>When set, the transition is gated until the state’s normalized time
reaches this value (see normalized_time).
conditions: Vec<CompiledCondition>Conditions that must all hold; an empty list is always true.
Trait Implementations§
Source§impl Clone for CompiledTransition
impl Clone for CompiledTransition
Source§fn clone(&self) -> CompiledTransition
fn clone(&self) -> CompiledTransition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompiledTransition
impl RefUnwindSafe for CompiledTransition
impl Send for CompiledTransition
impl Sync for CompiledTransition
impl Unpin for CompiledTransition
impl UnsafeUnpin for CompiledTransition
impl UnwindSafe for CompiledTransition
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