Skip to main content

compute_compound_inertia

Function compute_compound_inertia 

Source
pub fn compute_compound_inertia(
    masses: &[f32],
    inertias: &[Mat4],
    positions: &[Vec3],
    com: Vec3,
) -> Mat4
Expand description

Compute combined inertia for a compound body using parallel axis theorem