Added getters for the center of mass to the rigid body