From d66f179eb7c860063e7da94c844500c98bcd8eba Mon Sep 17 00:00:00 2001 From: Nick Date: Sun, 24 Jul 2022 21:48:53 -0400 Subject: [PATCH] Fix scatterer being off --- NewHorizons/Builder/Props/ScatterBuilder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NewHorizons/Builder/Props/ScatterBuilder.cs b/NewHorizons/Builder/Props/ScatterBuilder.cs index d330d404..dc2740cf 100644 --- a/NewHorizons/Builder/Props/ScatterBuilder.cs +++ b/NewHorizons/Builder/Props/ScatterBuilder.cs @@ -53,7 +53,7 @@ namespace NewHorizons.Builder.Props var height = radius; if (heightMapTexture != null) { - var sphericals = CoordinateUtilities.CartesianToSpherical(point); + var sphericals = CoordinateUtilities.CartesianToSpherical(point, false); float longitude = sphericals.x; float latitude = sphericals.y; @@ -70,7 +70,7 @@ namespace NewHorizons.Builder.Props if (config.Water != null && height - 1f < config.Water.size) continue; // Move it slightly into the ground - height -= 0.1f; + height -= 0.01f; } var prop = DetailBuilder.MakeDetail(go, sector, prefab, (MVector3)(point.normalized * height), null, propInfo.scale, true);