浏览代码

More iterations, higher gravity constant for better results.

Tomasz Zieliński 2 年之前
父节点
当前提交
09b493681b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/rmg/CZonePlacer.cpp

+ 2 - 2
lib/rmg/CZonePlacer.cpp

@@ -26,10 +26,10 @@ class CRandomGenerator;
 
 CZonePlacer::CZonePlacer(RmgMap & map)
 	: width(0), height(0), scaleX(0), scaleY(0), mapSize(0),
-	gravityConstant(5e-4f),
+	gravityConstant(1e-3f),
 	stiffnessConstant(3e-3f),
 	stifness(0),
-	stiffnessIncreaseFactor(1.05f),
+	stiffnessIncreaseFactor(1.03f),
 	bestTotalDistance(1e10),
 	bestTotalOverlap(1e10),
 	map(map)