Apply recovered player phases, static camera query and level availability

This commit is contained in:
UnixNight committed 2026-10-25 19:56:44 -04:00
1 parent 117db77c7b
commit 09cf1172bf
33 files changed
+1500 -99

No files matched your search

@@ -136,14 +136,15 @@ void Tick(PlayerInput input)
director.Touch(level.Player.Tag!, simulation.ActorRoot);
interactions.Update(simulation.ActorRoot, simulation.InteractionRadius);
mechanisms.Update(simulation.ActorRoot, simulation.InteractionRadius);
// Test actual aperture clearance when crossing the gate plane, before this
// frame's mechanism movement. The resolver uses this same current transform.
// Test the recovered radius60 root body when crossing the gate plane,
// before mechanism movement. Raw standing mesh height is a provisional
// visual/pivot policy, not the dynamic collider used by the source adapter.
if ((previous.Z - bars.Position.Z) * (simulation.ActorRoot.Z - bars.Position.Z) < 0)
{
var box = visuals.DoorColliders().Single();
var minimumY = DynamicSceneCollision.Corners(box).Min(p => p.Y);
Require(minimumY > simulation.Position.Y + simulation.BodyHeight,
"Replay crossed the bars before the moving doorway cleared the player");
Require(minimumY > simulation.ActorRoot.Y + simulation.InteractionRadius,
"Replay crossed the bars before the moving doorway cleared the recovered body");
crossings++;
}
mechanisms.Step(FixedStepClock.Step);