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:
parent
1999cca521
commit
bff39805cf
4 changed files with 32 additions and 5 deletions
|
|
@ -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 += () =>
|
||||
|
|
|
|||
Loading…
Reference in a new issue