mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add detectors to static bodies, just don't detect anything #217
This commit is contained in:
parent
c66f4a470e
commit
9dd43f5604
@ -36,7 +36,7 @@ namespace NewHorizons.Builder.General
|
|||||||
// Could copy the splash from the interloper as well some day
|
// 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);
|
detectorGO.SetActive(true);
|
||||||
return detectorGO;
|
return detectorGO;
|
||||||
|
|||||||
@ -433,10 +433,7 @@ namespace NewHorizons.Handlers
|
|||||||
Delay.FireOnNextUpdate(() => OrbitlineBuilder.Make(body.Object, ao as NHAstroObject, body.Config.Orbit.isMoon, body.Config));
|
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);
|
DetectorBuilder.Make(go, owRigidBody, primaryBody, ao, body.Config);
|
||||||
}
|
|
||||||
|
|
||||||
AstroObjectLocator.RegisterCustomAstroObject(ao);
|
AstroObjectLocator.RegisterCustomAstroObject(ao);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user