pagoda.physics.center_of_mass

pagoda.physics.center_of_mass(bodies)[source]

Given a set of bodies, compute their center of mass in world coordinates.