Skip to main content

mesh_inertia_tensor

Function mesh_inertia_tensor 

Source
pub fn mesh_inertia_tensor(
    triangles: &[(Vec3, Vec3, Vec3)],
    density: f32,
) -> [[f32; 3]; 3]
Expand description

Compute mesh inertia tensor (uniform density, about origin)