pub struct Bone {
pub name: String,
pub parent: i32,
pub rotation: [f32; 4],
pub translation: [f32; 3],
pub inv_rotation: [f32; 4],
pub inv_translation: [f32; 3],
}Expand description
A bone of a skeleton.
Fields§
§name: StringThe bone’s name.
parent: i32The parent bone’s index (-1 for the root).
rotation: [f32; 4]The rotation relative to the parent (a quaternion, stored conjugated).
translation: [f32; 3]The translation relative to the parent.
inv_rotation: [f32; 4]The rotation of the inverse bind transform.
inv_translation: [f32; 3]The translation of the inverse bind transform.
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