pub struct Bone2D {
pub id: usize,
pub name: String,
pub parent_id: Option<usize>,
pub local_transform: BoneTransform,
pub bind_pose_inverse: BoneTransform,
}Expand description
A single bone in a Skeleton2D.
Fields§
§id: usizeIndex of this bone (matches its position in Skeleton2D::bones).
name: StringHuman-readable name for editor integration and lookups.
parent_id: Option<usize>Index of the parent bone, or None for root bones.
local_transform: BoneTransformLocal-space transform relative to the parent bone.
bind_pose_inverse: BoneTransformInverse of the bind pose used during mesh skinning.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bone2D
impl RefUnwindSafe for Bone2D
impl Send for Bone2D
impl Sync for Bone2D
impl Unpin for Bone2D
impl UnsafeUnpin for Bone2D
impl UnwindSafe for Bone2D
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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