pub struct SkeletonJoint {
pub name: String,
pub parent: i32,
pub translation: [f32; 3],
pub rotation_deg: [f32; 3],
pub scale: [f32; 3],
}Expand description
One joint of a skeleton’s bind pose.
Fields§
§name: StringHuman-readable joint name (animation tracks may reference it later).
parent: i32Parent joint index, or -1 for a root. Parents must appear before their
children in the skeleton list.
translation: [f32; 3]Local bind translation relative to the parent.
rotation_deg: [f32; 3]Local bind rotation, Euler degrees [pitch, yaw, roll], YXZ order.
scale: [f32; 3]Local bind scale.
Trait Implementations§
Source§impl Clone for SkeletonJoint
impl Clone for SkeletonJoint
Source§fn clone(&self) -> SkeletonJoint
fn clone(&self) -> SkeletonJoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SkeletonJoint
impl Debug for SkeletonJoint
Source§impl Default for SkeletonJoint
impl Default for SkeletonJoint
Source§impl<'de> Deserialize<'de> for SkeletonJointwhere
SkeletonJoint: Default,
impl<'de> Deserialize<'de> for SkeletonJointwhere
SkeletonJoint: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SkeletonJoint
impl RefUnwindSafe for SkeletonJoint
impl Send for SkeletonJoint
impl Sync for SkeletonJoint
impl Unpin for SkeletonJoint
impl UnsafeUnpin for SkeletonJoint
impl UnwindSafe for SkeletonJoint
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