pub struct BonePose {
pub translation: (f64, f64),
pub rotation: f64,
}Expand description
Local translation/rotation channels for one bone, with an identity default.
Translation is added to the rest offset before the parent rotation is applied.
Rotation is clockwise radians, around this bone’s pivot. Rotating a bone moves
its descendants but not its own pivot. There is no automatic angle wrapping:
0 to 2 * PI animates one full turn, not a shortest-arc rotation.
Interpolation permits overshoot. Nonfinite or overflowing values are rejected
by Skeleton::solve, not by construction or timeline sampling.
Fields§
§translation: (f64, f64)Additional parent-local translation in pixels; default (0, 0).
rotation: f64Additional clockwise local rotation in radians; default zero.
Trait Implementations§
impl Copy for BonePose
Source§impl Interpolate for BonePose
impl Interpolate for BonePose
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 StructuralPartialEq for BonePose
Auto Trait Implementations§
impl Forget for BonePose
impl Freeze for BonePose
impl Move for BonePose
impl RefUnwindSafe for BonePose
impl Send for BonePose
impl Sync for BonePose
impl Unpin for BonePose
impl UnsafeUnpin for BonePose
impl UnwindSafe for BonePose
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