Add detectors to static bodies, just don't detect anything #217

This commit is contained in:
Nick 2022-08-15 12:53:49 -04:00
parent c66f4a470e
commit 9dd43f5604
2 changed files with 2 additions and 5 deletions

View File

@ -36,7 +36,7 @@ namespace NewHorizons.Builder.General
// Could copy the splash from the interloper as well some day
}
SetDetector(primaryBody, astroObject, forceDetector);
if (!config.Orbit.isStatic) SetDetector(primaryBody, astroObject, forceDetector);
detectorGO.SetActive(true);
return detectorGO;

View File

@ -433,10 +433,7 @@ namespace NewHorizons.Handlers
Delay.FireOnNextUpdate(() => OrbitlineBuilder.Make(body.Object, ao as NHAstroObject, body.Config.Orbit.isMoon, body.Config));
}
if (!body.Config.Orbit.isStatic)
{
DetectorBuilder.Make(go, owRigidBody, primaryBody, ao, body.Config);
}
AstroObjectLocator.RegisterCustomAstroObject(ao);