Skip to main content

weights_from_segments_into

Function weights_from_segments_into 

pub fn weights_from_segments_into(
    positions: &[[f32; 3]],
    segments: &[BoneSegment],
    joint_count: usize,
    influences: u8,
    out: &mut [SkinWeight],
) -> Result<usize, SkeletalError>
Expand description

The authored influence set is specific to a mesh part. Nearest two segments blend across hinges; rigid props should author a single attachment segment.