pub struct Bone {
pub id: BoneId,
pub name: String,
pub parent: Option<BoneId>,
pub local_bind_pose: Transform3D,
pub inv_bind_matrix: Mat4,
pub children: Vec<BoneId>,
}Expand description
A single bone in the skeleton hierarchy.
Fields§
§id: BoneId§name: String§parent: Option<BoneId>§local_bind_pose: Transform3DBind-pose local transform (rest pose).
inv_bind_matrix: Mat4Pre-computed inverse bind-pose matrix (model space → bone space).
children: Vec<BoneId>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bone
impl RefUnwindSafe for Bone
impl Send for Bone
impl Sync for Bone
impl Unpin for Bone
impl UnsafeUnpin for Bone
impl UnwindSafe for Bone
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