pub struct Bone {
pub name: String,
pub parent: Option<usize>,
pub pivot: Vec3,
pub rotation: Vec3,
pub quads: Vec<Quad>,
pub locators: Vec<(String, Vec3)>,
}Expand description
A bone, ready.
Fields§
§name: String§parent: Option<usize>Index of its parent in Model::bones (always before it).
pivot: Vec3Pixels.
rotation: Vec3Radians.
quads: Vec<Quad>Its cubes’ faces, in its own space (pixels).
locators: Vec<(String, Vec3)>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