Actually account for it being in the volume or not

This commit is contained in:
Nick 2024-03-25 13:19:51 -04:00
parent 738c41701a
commit 086757a46c

View File

@ -123,7 +123,7 @@ namespace NewHorizons.Handlers
var shipDetector2 = Locator.GetShipDetector().GetComponent<ShipFluidDetector>();
foreach (var volume in SpawnPointBuilder.ShipSpawn.GetAttachedOWRigidbody().GetComponentsInChildren<EffectVolume>())
{
if (volume.GetOWTriggerVolume().GetDistanceToBoundary(ship.transform.position) <= 0)
if (volume.GetOWTriggerVolume().GetPenetrationDistance(ship.transform.position) > 0)
{
// Add ship to volume
// If it's already tracking it it will complain here but thats fine