pub enum AnimationRetargeting {
None,
Skeleton {
model_url: String,
},
AnimationScaled {
normalize_hip: bool,
model_url: String,
},
}
Expand description
Animation retargeting configuration.
Variants§
None
Bone Translation comes from the animation data, unchanged.
Skeleton
Bone Translation comes from the Target Skeleton’s bind pose.
AnimationScaled
Fields
Bone translation comes from the animation data, but is scaled by the Skeleton’s proportions. This is the ratio between the bone length of the Target Skeleton (the skeleton the animation is being played on), and the Source Skeleton (the skeleton the animation was authored for).
Trait Implementations§
source§impl Clone for AnimationRetargeting
impl Clone for AnimationRetargeting
source§fn clone(&self) -> AnimationRetargeting
fn clone(&self) -> AnimationRetargeting
Returns a copy 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 AnimationRetargeting
impl Debug for AnimationRetargeting
source§impl Default for AnimationRetargeting
impl Default for AnimationRetargeting
source§fn default() -> AnimationRetargeting
fn default() -> AnimationRetargeting
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for AnimationRetargeting
impl Send for AnimationRetargeting
impl Sync for AnimationRetargeting
impl Unpin for AnimationRetargeting
impl UnwindSafe for AnimationRetargeting
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> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.