pub enum Motion {
Clip(Entity),
Pending(Entity),
Blend1D {
parameter: usize,
children: Vec<(f32, Motion)>,
},
Unsupported(String),
}Expand description
A selected state’s motion. Blend thresholds are finite and strictly increasing, one or more children. A lowering keeps an unsupported tree as a named refusal instead of selecting a child.
Variants§
Clip(Entity)
Pending(Entity)
A clip the source lists and has not loaded yet (the entity holds no core.clip, or not yet the one this state
plays): the state plays it once it is loaded and the lowering that made this controller has run again, which states
a Motion::Clip. Until then a consumer refuses the state by name, like Motion::Unsupported, and may ask the
source to load the entity. Not verified against the entity’s components: it may hold core.clip already, between
the load and that lowering.
Blend1D
Unsupported(String)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Motion
impl<'de> Deserialize<'de> for Motion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Motion
Auto Trait Implementations§
impl Forget for Motion
impl Freeze for Motion
impl RefUnwindSafe for Motion
impl Send for Motion
impl Sync for Motion
impl Unpin for Motion
impl UnsafeUnpin for Motion
impl UnwindSafe for Motion
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