fixed center of mass formula