pub struct Pose<const BONES: usize> {
pub bones: [BonePose; BONES],
}Expand description
A fixed-size set of local channels, indexed exactly like its skeleton.
The default is the rest pose. Implements Interpolate so a whole pose can
be sampled with crate::Keyframes or crate::Tween, including repeat,
delay, and reverse. The compile-time count prevents mismatched channel lengths;
skeletons with equal counts still require the same semantic bone ordering.
Fields§
§bones: [BonePose; BONES]Local channels in skeleton index order.
Implementations§
Trait Implementations§
Source§impl<const BONES: usize> Interpolate for Pose<BONES>
impl<const BONES: usize> Interpolate for Pose<BONES>
Source§fn interpolate(&self, target: &Self, progress: f64) -> Self
fn interpolate(&self, target: &Self, progress: f64) -> Self
Blends toward
target with nominal progress zero at self and one at target. Read moreimpl<const BONES: usize> StructuralPartialEq for Pose<BONES>
Auto Trait Implementations§
impl<const BONES: usize> Forget for Pose<BONES>
impl<const BONES: usize> Freeze for Pose<BONES>
impl<const BONES: usize> RefUnwindSafe for Pose<BONES>
impl<const BONES: usize> Send for Pose<BONES>
impl<const BONES: usize> Sync for Pose<BONES>
impl<const BONES: usize> Unpin for Pose<BONES>
impl<const BONES: usize> UnsafeUnpin for Pose<BONES>
impl<const BONES: usize> UnwindSafe for Pose<BONES>
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