Rewind Time

How to rewind time in-game to correct mistakes

This page is unfinished, but made accessible because there may be useful content or links in the Notes section.

To rewind your game, all you have to do is track/log the positions of everything that you want to be rewindable.

Outline

We need a Rewindable script on every GameObject that should track its position.

We also need a RewindManager script that will initiate the rewind.

  • Rewindable.cs
    • Variables
      • Positions
    • Functions
  • RewindManager.cs
    • Variables
      • IsRunning
      • CurrentStep
      • MaxStep
    • Functions
      • Begin
      • Stop