struct
Node
pub struct Node {
pub name: String,
pub parent: Option<usize>,
pub translation: Vec3,
pub rotation: [f32; 4],
pub scale: Vec3,
pub meshes: Vec<usize>,
pub skin: Option<usize>,
}A node of a model: its name, transform, parent and mesh.
Fields
skin
pub skin: Option<usize>The skin that deforms its meshes (their own transform then doesn't apply: the joints place them).
Methods
local_matrix
pub fn local_matrix(&self) -> Mat4Its transform relative to its parent: translation, rotation, then scale.