Dynamical friction for compound bodies