pub struct MotionTransition {
pub from_state: String,
pub to_state: String,
pub condition: TransitionCondition,
pub blend_duration: f32,
pub priority: i32,
}Expand description
A directed edge in the motion graph.
Fields§
§from_state: StringSource state name.
to_state: StringDestination state name.
condition: TransitionConditionCondition that triggers the transition.
blend_duration: f32Cross-fade duration in seconds.
priority: i32Higher priority transitions are evaluated first.
Auto Trait Implementations§
impl Freeze for MotionTransition
impl RefUnwindSafe for MotionTransition
impl Send for MotionTransition
impl Sync for MotionTransition
impl Unpin for MotionTransition
impl UnsafeUnpin for MotionTransition
impl UnwindSafe for MotionTransition
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> 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