public double Attract(Planet to,Force gravity){
		double distanceX = this.posX - to.posX;
		double distanceY = this.posY - to.posY;

		double distance = Math.sqrt((distanceX * distanceX) + (distanceY * distanceY));
		double attraction = gravity.Attraction(distance,this.mass,to.mass,this.radius + to.radius);
		double potential = gravity.Potential(distance,this.mass,to.mass,this.radius + to.radius);

 		this.deltaVelocityX -= (attraction * distanceX)/(distance * this.mass);
 		this.deltaVelocityY -= (attraction * distanceY)/(distance * this.mass);
 		to.deltaVelocityX += (attraction * distanceX)/(distance * to.mass);
 		to.deltaVelocityY += (attraction * distanceY)/(distance * to.mass);
		return potential;
	}