pub struct AvatarNode {
pub index: u32,
pub name: Option<String>,
pub parent: Option<u32>,
pub children: Vec<u32>,
pub initial_translation: Vec3,
pub initial_rotation: Quat,
pub initial_scale: Vec3,
}Expand description
One node of the avatar’s scene graph: its rest pose plus parent/child links. Indices are the glTF node indices.
Fields§
§index: u32Stable zero-based node index within the containing asset.
name: Option<String>Optional source node name.
parent: Option<u32>Parent node index, or None for a scene root.
children: Vec<u32>Child node indices in source order.
initial_translation: Vec3Rest-pose local translation.
initial_rotation: QuatRest-pose local rotation.
initial_scale: Vec3Rest-pose local scale.
Implementations§
Source§impl AvatarNode
impl AvatarNode
Sourcepub fn initial_local_matrix(&self) -> Mat4
pub fn initial_local_matrix(&self) -> Mat4
Returns the rest-pose local matrix composed from this node’s TRS values.
Trait Implementations§
Source§impl Clone for AvatarNode
impl Clone for AvatarNode
Auto Trait Implementations§
impl Freeze for AvatarNode
impl RefUnwindSafe for AvatarNode
impl Send for AvatarNode
impl Sync for AvatarNode
impl Unpin for AvatarNode
impl UnsafeUnpin for AvatarNode
impl UnwindSafe for AvatarNode
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