pub struct Skeleton {
pub bones: Vec<Bone>,
}Fields§
§bones: Vec<Bone>The hierarchy of bones in the skeleton.
Implementations§
source§impl Skeleton
impl Skeleton
pub fn from_skeleton(skeleton: &Skeleton, skinning: &Skinning) -> Self
pub fn from_legacy_skeleton(hkt: &Hkt) -> Self
sourcepub fn model_space_transforms(&self) -> Vec<Mat4>
pub fn model_space_transforms(&self) -> Vec<Mat4>
The global transform for each bone in model space by recursively applying the parent transform.
This is also known as the bone’s “rest pose” or “bind pose”. For inverse bind matrices, simply invert the model space transforms.
Trait Implementations§
impl StructuralPartialEq for Skeleton
Auto Trait Implementations§
impl Freeze for Skeleton
impl RefUnwindSafe for Skeleton
impl Send for Skeleton
impl Sync for Skeleton
impl Unpin for Skeleton
impl UnwindSafe for Skeleton
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more