pub struct Humanoid { /* private fields */ }Expand description
The humanoid skeleton: the mapping from each HumanBone to a node.
Implementations§
Source§impl Humanoid
impl Humanoid
Sourcepub fn bone(&self, bone: HumanBone) -> Option<&HumanBoneNode>
pub fn bone(&self, bone: HumanBone) -> Option<&HumanBoneNode>
Returns the node index assigned to bone, if any.
Sourcepub fn bone_id(&self, bone: HumanBone) -> Option<NodeId>
pub fn bone_id(&self, bone: HumanBone) -> Option<NodeId>
Returns the type-safe asset node assigned to bone.
Sourcepub fn bones(&self) -> impl Iterator<Item = (&HumanBone, &HumanBoneNode)>
pub fn bones(&self) -> impl Iterator<Item = (&HumanBone, &HumanBoneNode)>
Iterates over every mapped bone and its raw glTF node index.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Humanoid
impl RefUnwindSafe for Humanoid
impl Send for Humanoid
impl Sync for Humanoid
impl Unpin for Humanoid
impl UnsafeUnpin for Humanoid
impl UnwindSafe for Humanoid
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