Function ssbh_data::skel_data::calculate_single_bind_transform[][src]

pub fn calculate_single_bind_transform<'a>(
    skel: &'a Skel,
    parent_bone_name: &str
) -> Option<[(f32, f32, f32, f32); 4]>
Expand description

Calculates the combined single bind transform matrix, which determines the resting position of a single bound mesh object. Each bone transform is multiplied by its parents transform recursively starting with parent_bone_name until a root node is reached. Returns the resulting matrix in row major order or None if no matrix could be calculated for the given parent_bone_name.