factor out distanceFromOtherObjectPattern, https://github.com/phetsims/gravity-force-lab-basics/issues/88
factor out distanceFromOtherObjectPattern, https://github.com/phetsims/gravity-force-lab-basics/issues/88

phetsims/phetcommon,phetsims/phetcommon,phetsims/phetcommon