pub enum TransitionCondition {
Always,
AfterSeconds(f32),
ParameterAbove(String, f32),
ParameterBelow(String, f32),
ParameterEqual(String, f32),
AtEnd,
}Expand description
Condition that must be satisfied for a state transition to fire.
Variants§
Always
Fire immediately on the next update tick.
AfterSeconds(f32)
Fire after the controller has spent at least N seconds in the current state.
ParameterAbove(String, f32)
Fire when the named parameter is strictly above the threshold.
ParameterBelow(String, f32)
Fire when the named parameter is strictly below the threshold.
ParameterEqual(String, f32)
Fire when the named parameter is within ±0.05 of the threshold.
AtEnd
Fire when the current animation clip reaches its end (state_time >= clip duration). Only meaningful for non-looping states.
Trait Implementations§
Source§impl Clone for TransitionCondition
impl Clone for TransitionCondition
Source§fn clone(&self) -> TransitionCondition
fn clone(&self) -> TransitionCondition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransitionCondition
impl Debug for TransitionCondition
Source§impl PartialEq for TransitionCondition
impl PartialEq for TransitionCondition
impl StructuralPartialEq for TransitionCondition
Auto Trait Implementations§
impl Freeze for TransitionCondition
impl RefUnwindSafe for TransitionCondition
impl Send for TransitionCondition
impl Sync for TransitionCondition
impl Unpin for TransitionCondition
impl UnsafeUnpin for TransitionCondition
impl UnwindSafe for TransitionCondition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more