mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Actually account for it being in the volume or not
This commit is contained in:
parent
738c41701a
commit
086757a46c
@ -123,7 +123,7 @@ namespace NewHorizons.Handlers
|
|||||||
var shipDetector2 = Locator.GetShipDetector().GetComponent<ShipFluidDetector>();
|
var shipDetector2 = Locator.GetShipDetector().GetComponent<ShipFluidDetector>();
|
||||||
foreach (var volume in SpawnPointBuilder.ShipSpawn.GetAttachedOWRigidbody().GetComponentsInChildren<EffectVolume>())
|
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
|
// Add ship to volume
|
||||||
// If it's already tracking it it will complain here but thats fine
|
// If it's already tracking it it will complain here but thats fine
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user