public double potential(double distance, double massA, double massB,double combined_radii){
 		distance=Math.copySign(Math.max(combined_radii/2, Math.abs(distance)),distance);
		return (massA * massB) / (2 * distance * distance);
	}