Wormhole warp: centre follows the wormhole the ship is at in each half

The presenter stored the entered wormhole's position once, so the exit half
pulled toward a point in the old zone. The ship already holds the wormhole
position for the current half; expose it as Ship.WormholePosition and read it
each frame, dropping the presenter's copy.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-11-25 23:29:12 +01:00
commit bff39805cf
4 changed files with 32 additions and 5 deletions

View file

@ -701,7 +701,7 @@ public class ActionGameManager : MonoBehaviour
{
if (!(CurrentEntity is Ship ship) || ship.WormholeAnimationInProgress) return;
ship.EnterWormhole(wormhole.Position);
WormholeWarpPresenter.Begin(ship, wormhole.Position, DeathPost.gameObject.layer,
WormholeWarpPresenter.Begin(ship, DeathPost.gameObject.layer,
Mathf.Max(DeathPost.priority, HeatstrokePost.priority, HypothermiaPost.priority,
SevereHeatstrokePost.priority, SevereHypothermiaPost.priority) + 1);
ship.OnEnteredWormhole += () =>