pub enum MovementOwner {
Gameplay,
Animation,
}Expand description
The system that owns one component of a clip’s world movement.
This is project intent, not a fact inferred from the animation or an
engine profile. MovementOwner::Gameplay means the entity/controller
supplies the component and an importer should bake it into pose;
MovementOwner::Animation means extracted root motion supplies it.
Variants§
Gameplay
The entity or gameplay controller owns this movement component.
Animation
Extracted animation root motion owns this movement component.
Implementations§
Source§impl MovementOwner
impl MovementOwner
Sourcepub const fn from_in_place(in_place: bool) -> Self
pub const fn from_in_place(in_place: bool) -> Self
Convert the legacy horizontal in_place declaration into its canonical
movement owner.
Trait Implementations§
Source§impl Clone for MovementOwner
impl Clone for MovementOwner
Source§fn clone(&self) -> MovementOwner
fn clone(&self) -> MovementOwner
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 moreimpl Copy for MovementOwner
Source§impl Debug for MovementOwner
impl Debug for MovementOwner
Source§impl<'de> Deserialize<'de> for MovementOwner
impl<'de> Deserialize<'de> for MovementOwner
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 Eq for MovementOwner
Source§impl PartialEq for MovementOwner
impl PartialEq for MovementOwner
impl StructuralPartialEq for MovementOwner
Auto Trait Implementations§
impl Freeze for MovementOwner
impl RefUnwindSafe for MovementOwner
impl Send for MovementOwner
impl Sync for MovementOwner
impl Unpin for MovementOwner
impl UnsafeUnpin for MovementOwner
impl UnwindSafe for MovementOwner
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