Backstory & Development:
Rewind Time was a feature we kind of doubted for the android platform due to performance limitations. But we decided upon it being worth a shot. We found that the player simply respawning on the last safe cube they were on before they died was too generic for a game that dealt with time. ( With There Being Slow and Fast Motion Cubes).
This was achieved by when the moment the player dies a custom destructible mesh (Made In Blender) would be spawned in and physically simulated. Right after the destructible was spawned a timer would log transforms for each part of the destructible mesh a few times every second. After so long this would stop and the game would pause prompting the player to either respawn or restart. Respawning will run through everything that was recorded through a transform lerp. Putting the player back together. And when finished the destructible will destroy and the player will spawn instantly. Then lerp the player back to the center of the previous safe cube.
[/quote]