Skip to main content

compute_compound_com

Function compute_compound_com 

Source
pub fn compute_compound_com(masses: &[f32], positions: &[Vec3]) -> Vec3
Expand description

Compute the center of mass of a compound body