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
|
|
@ -54,6 +54,10 @@ public class Ship : Entity
|
|||
: _exitingWormhole ? 1 - _wormholeAnimationProgress
|
||||
: 0;
|
||||
|
||||
// The wormhole the ship is at in the current half: the one it dives into, then the one it emerges from. Presenters
|
||||
// read it (the screen warp centres on it); it is the sim's own position, so it needs no copy elsewhere.
|
||||
public float2 WormholePosition => _wormholePosition;
|
||||
|
||||
public event Action OnExitedWormhole;
|
||||
public event Action OnEnteredWormhole;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue