Skip to main content

auto_bind

Function auto_bind 

Source
pub fn auto_bind(
    p: &mut Project,
    mesh_node: NodeId,
    skel_node: NodeId,
) -> Result<()>
Expand description

Bind a mesh instance to a skeleton instance with automatic weights: each vertex is influenced by its two nearest joints with distance falloff.

Assumes mesh and skeleton share the rest pose (typical when the mesh was modelled around the rig).