public void applyForceOfGravity(List<? extends SpaceObject> spaceObjects, double dt) {
		double fX = 0;
		double fY = 0;

		for (SpaceObject spaceObj : spaceObjects) {
			if (this != spaceObj) {
				double x2 = spaceObj.getX();
				double y2 = spaceObj.getY();

				double r = MathUtils.distance(x, y, x2, y2);
				
				if (r < 0.001) {
					continue;
				}
				
				double f = mass * spaceObj.getMass() / (r * r);

				fX += f * (x2 - x) / r;
				fY += f * (y2 - y) / r;
			}
		}

		velX += (fX * dt) / mass;
		velY += (fY * dt) / mass;
	}