Sample renderer animation from daemon time
This commit is contained in:
parent
89290e2fee
commit
e48c357efa
9 changed files with 57 additions and 8 deletions
|
|
@ -2266,7 +2266,8 @@ public class ActionGameManager : MonoBehaviour
|
|||
var blueprint = new ZoneConstructionBlueprint
|
||||
{
|
||||
Radius = 2000,
|
||||
Mass = 10000
|
||||
Mass = 10000,
|
||||
Time = (float)zone.SimulationTimeSeconds
|
||||
};
|
||||
|
||||
foreach (var orbit in zone.Orbits ?? Array.Empty<AetheriaRuntimeOrbitSnapshotCommit>())
|
||||
|
|
@ -3462,6 +3463,7 @@ public class ActionGameManager : MonoBehaviour
|
|||
return;
|
||||
}
|
||||
|
||||
StampDaemonZoneSimulationTime(observed.Run, observed.Frame.SimulationTimeSeconds);
|
||||
if (TryRestoreEntityGraphFromDaemonRun(observed.Run))
|
||||
{
|
||||
_lastAppliedAuthoritativeDaemonFrameId = observed.Frame.FrameId;
|
||||
|
|
@ -3469,6 +3471,17 @@ public class ActionGameManager : MonoBehaviour
|
|||
}
|
||||
}
|
||||
|
||||
private static void StampDaemonZoneSimulationTime(
|
||||
AetheriaRuntimeRunCheckpointCommit run,
|
||||
double simulationTimeSeconds)
|
||||
{
|
||||
foreach (var zone in run?.Zones ?? Array.Empty<AetheriaRuntimeZoneSnapshotCommit>())
|
||||
{
|
||||
if (zone != null)
|
||||
zone.SimulationTimeSeconds = simulationTimeSeconds;
|
||||
}
|
||||
}
|
||||
|
||||
private bool TryRequestDaemonMoveVector(Vector2 movement)
|
||||
{
|
||||
var observer = ResolveDaemonObserver();
|
||||
|
|
|
|||
Loading…
Reference in a new issue