center of mass and moment of inertia