pub struct Joint {
pub name: String,
pub parent: Option<usize>,
pub bind: JointPose,
}Expand description
One joint in a skeleton: a parent link and a local bind transform.
Fields§
§name: StringAuthored joint name (empty when the source declared none). Resolved to an index at load time by consumers that reference joints by name (e.g. IK chains); never compared per frame.
parent: Option<usize>Index of the parent joint, or None for a root. Parents must appear
before their children so a single forward pass resolves the hierarchy.
bind: JointPoseLocal bind-pose transform relative to the parent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Joint
impl RefUnwindSafe for Joint
impl Send for Joint
impl Sync for Joint
impl Unpin for Joint
impl UnsafeUnpin for Joint
impl UnwindSafe for Joint
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