Unity Replay & Ghost System -- RC Racing

Record, compress, and replay RC racing ghost data in Unity.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/Totes-MickGOATs/r8eo-x-unity --skill unity-replay-ghost-system-rc-racing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Unity Replay & Ghost System -- RC Racing
Source: https://github.com/Totes-MickGOATs/r8eo-x-unity/tree/main/.agents/skills/unity-replay-ghost
Command: npx skills add https://github.com/Totes-MickGOATs/r8eo-x-unity --skill unity-replay-ghost-system-rc-racing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a robust system for recording, compressing, and replaying RC racing ghosts, ensuring accurate and visually smooth ghost car playback for competitive racing and practice.

Core Features & Use Cases

  • State Recording: Captures vehicle transforms and key dynamics for deterministic playback, avoiding PhysX non-determinism.
  • Compression Pipeline: Reduces ghost data size significantly (e.g., 432 KB to ~75 KB) using quantization, delta encoding, and DEFLATE.
  • Playback System: Uses kinematic playback with Hermite interpolation for smooth motion and Cinemachine cameras for dynamic viewing angles.
  • Use Case: Implement a ghost car feature where players can race against their own best lap or share ghosts with friends, complete with accurate physics representation and cinematic camera work.

Quick Start

Use the unity-replay-ghost skill to record a 3-minute ghost lap at 50 Hz.

Frequently Asked Questions about Unity Replay & Ghost System -- RC Racing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I record and replay ghost cars in Unity without physics desync issues?

Recording and replaying ghost cars in Unity deterministically requires capturing vehicle transforms and dynamics at 50 Hz, bypassing PhysX non-determinism by using kinematic playback with Hermite interpolation for smooth visual motion.

What is the best way to compress racing game replay data in Unity?

The best way to compress racing replay data in Unity is using a pipeline of quantization, delta encoding, and DEFLATE compression, which can significantly reduce file sizes, for example compressing a 432 KB ghost file down to roughly 75 KB.

How does Cinemachine integration work with ghost car playback?

Cinemachine integration for ghost car playback provides dynamic viewing angles during kinematic replay. The system drives Cinemachine cameras alongside Hermite interpolation to render recorded vehicle transforms cinematically.

Can I use async I/O to save and load ghost data in the background?

Yes, you can use async I/O to save and load ghost data in the background. This system implements asynchronous background I/O operations to prevent frame drops when reading or writing compressed replay files.

Does this Unity replay system include anti-cheat validation?

Yes, the Unity replay system includes anti-cheat validation. It implements validation mechanisms to verify the integrity of recorded ghost data, ensuring competitive racing replays remain untampered.

What are the limitations of using state-based recording for racing replays?

A limitation of state-based recording for racing replays is that it captures transforms at fixed intervals like 50 Hz rather than logging raw physics inputs, meaning playback relies on kinematic interpolation rather than real-time physics simulation.