pub struct PayloadJoint {
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 skinned mesh’s bind-pose skeleton, as stored in the
compiled payload. Mirrors assets::skinned_mesh::SkeletonJoint but lives in
gfx so the payload format stays self-contained: the build/runtime
boundaries convert between the two. Parents must appear before their
children, so the runtime can walk the array once when building the
Skeleton.
Fields§
§name: StringThe joint’s authored name.
parent: i32Index of the parent joint, or -1 for a root.
translation: [f32; 3]Bind-pose local translation.
rotation_deg: [f32; 3]YXZ Euler rotation in degrees.
scale: [f32; 3]Per-axis scale.
Trait Implementations§
Source§impl Clone for PayloadJoint
impl Clone for PayloadJoint
Source§fn clone(&self) -> PayloadJoint
fn clone(&self) -> PayloadJoint
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 PayloadJoint
impl Debug for PayloadJoint
Source§impl PartialEq for PayloadJoint
impl PartialEq for PayloadJoint
impl StructuralPartialEq for PayloadJoint
Auto Trait Implementations§
impl Freeze for PayloadJoint
impl RefUnwindSafe for PayloadJoint
impl Send for PayloadJoint
impl Sync for PayloadJoint
impl Unpin for PayloadJoint
impl UnsafeUnpin for PayloadJoint
impl UnwindSafe for PayloadJoint
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