pub struct BoneNode {
pub bone_index: u16,
pub parent_index: i16,
pub children: Vec<u16>,
pub local_transform: [f32; 16],
}Expand description
Bone node in skeleton hierarchy
Fields§
§bone_index: u16Bone index in the model
parent_index: i16Parent bone index (-1 if root)
children: Vec<u16>Children bone indices
local_transform: [f32; 16]Local transform relative to parent
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BoneNode
impl RefUnwindSafe for BoneNode
impl Send for BoneNode
impl Sync for BoneNode
impl Unpin for BoneNode
impl UnwindSafe for BoneNode
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§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