pub struct MappedSkeleton<'a> {
pub skeleton: &'a Skeleton,
pub neutral_pose: &'a SkeletonPose,
}Expand description
One skeleton of a SkeletonMapper with its neutral pose.
Fields§
§skeleton: &'a SkeletonThe skeleton.
neutral_pose: &'a SkeletonPoseThe skeleton in its neutral pose, in model space. The two neutral poses describe the
character standing in one place, so that joints of the same name are where they belong
to each other. SkeletonMapper::new does not check that they are close: neutral poses
far apart put long translations into the transforms between the skeletons, and
SkeletonMapper::map then refuses chains it can no longer turn reliably
(RagdollError::DegenerateChain).
Trait Implementations§
Source§impl<'a> Clone for MappedSkeleton<'a>
impl<'a> Clone for MappedSkeleton<'a>
impl<'a> Copy for MappedSkeleton<'a>
Auto Trait Implementations§
impl<'a> Freeze for MappedSkeleton<'a>
impl<'a> RefUnwindSafe for MappedSkeleton<'a>
impl<'a> Send for MappedSkeleton<'a>
impl<'a> Sync for MappedSkeleton<'a>
impl<'a> Unpin for MappedSkeleton<'a>
impl<'a> UnsafeUnpin for MappedSkeleton<'a>
impl<'a> UnwindSafe for MappedSkeleton<'a>
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