time-rewind
# Time Rewind System
Record snapshots from every object that implements IRewindable and restore the world to a previous point in time.
Structure
Quick Start
1. Create a TimeRewindSystem Instance
TimeRewindSystem is a pure C# class. Create it from an owner component and call Tick from Update.
2. Add RewindableObject
Attach RewindableObject to objects you want to restore. Transform state is recorded automatically.
3. Rewind
4. Skill Example
API
TimeRewindSystem
Implement IRewindable
Use IRewindable directly when you need to capture custom state.
Resource Cost
If you have many objects or a long history, reduce SnapshotsPerSecond or MaxHistorySeconds.
Use Cases
Physics
Objects with Rigidbody need velocity and angular velocity captured too. Extend RewindableObject and override CaptureState.