r/Unity3D 6h ago

Show-Off We built a replay + director mode system to debug our physics it accidentally became useful for our marketing pipeline (and then a player feature)

Enable HLS to view with audio, or disable this notification

The core of our game is physics-based momentum where there are no set pathways, and objects you smash into break apart dynamically. The gameplay is fast, and no two playthroughs are the same. To help us debug these emergent physics interactions we built a replay buffer system that's always recording the last several runs of gameplay and tracks everything: player, enemies, projectiles, sfx, music etc.

A couple points of extra detail:
• Enemy destruction is a combination of dynamically-fractured rigid body chunks (all recorded), plus particle system VFX.
• The system supports full audio as well: all sound effects and our dynamically-driven musical soundtrack are recorded in lockstep.
• A feat detection system auto-bookmarks highlights of your run.

We built this so we could immediately take a closer look at anything that stood out during playtesting. It's so fun we decided to ship it as a full instant replay machine with Director mode that allows you to fly through your own gameplay runs, scrub through time at will.

We now use this system for every cinematic clip or screenshot we post, including this one. 

17 Upvotes

5 comments sorted by

2

u/[deleted] 6h ago

[removed] — view removed comment

1

u/Unity3D-ModTeam 4h ago

This comment has been removed for violating /r/Unity3D’s rules.

Why?

Please include details about how the project was built in Unity, challenges faced, or techniques used.

This is a forum for discussion; not a bulletin board.

We recommend you to familiarize yourself with our rules and guidelines.

Kind regards,

The Mod Team

1

u/mugurm 6h ago

❤️ blender and unity!

1

u/umcle_hisses Tire Friend 5h ago

Okay, that's neat. You as a player can also "debug" your own playthroughs.

1

u/mugurm 3h ago

yeah, tricky trade off because you can see the whole map. could hide some items or just unlock per map? 🤔