pub struct Bone {
pub name: String,
pub parent: Option<BoneId>,
pub rest: Transform,
pub inverse_bind: Option<Mat4>,
}Expand description
One skeleton node/bone in parent-before-child order.
Fields§
§name: StringBone/node name as authored or normalized by the loader.
parent: Option<BoneId>Parent bone index; None means this is a root bone.
rest: TransformRest pose, node-local. Whether this or the inverse-bind-derived
rest is authoritative is a bind-pose check concern.
inverse_bind: Option<Mat4>Inverse bind matrix from a skin, when one references this bone.
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