Telemetry Rush is a Unity‑based racing simulation platform that integrates external Python servers to replay, visualize, challenge and analyze motorsport telemetry data. The Python servers are used to simulate live streaming data. In a production version, these servers and the data pre-processing could be replaces with websocket servers, which deliver live data from an actual race. Built during a hackathon (HackTheTrack by Toyota Gazoo Racing), it combines live data streaming, racing game, vehicle visualization, weather effects, and leaderboard tracking into a single interactive Windows application.
A Youtube video explaining and walking through the project can be found here - https://www.youtube.com/watch?v=EZTRW3_jHg0
-
Telemetry Playback
- Streams vehicle telemetry from recorded CSV logs at configurable speeds.
- Supports play, pause, reverse (WIP), restart (WIP), and seek (WIP) commands.
- Displays speed, RPM, gear, throttle, braking, steering, lap distance and many more data in real time.
-
Vehicle Visualization
- Cars are rendered along spline tracks with accurate steering and wheel rotation.
- GPS coordinates are converted into Unity positions using
GPSUtils. - Track paths are drawn dynamically with
LineRenderer. - Ghost cars show the intended position of the currently selected car along the ideal racing line.
- Ghost cars an be turned on or off.
-
Weather Simulation
- Real‑time weather data (temperature, humidity, wind, rain) gathered from the base dataset applied to the scene.
- Fog density, skybox tint, rain particles, and sun position adapt to telemetry input.
- UI shows current weather condition and icon.
- Can be turned on or off.
-
Endurance Racing UI
- Displays lap times, sector splits, top speeds, rankings and flags.
- Charts visualize lap performance across vehicles, laps and sectors.
- Supports top‑10 fastest lap analysis and race result summaries.
-
Leaderboard Tracking
- Leaderboard streamed via WebSocket.
- Shows position, laps completed, gaps to leader/previous, and best lap stats.
- Updates Unity UI dynamically with color‑coded rows.
-
Camera & Vehicle Selection
- Switch between multiple vehicles and camera perspectives using keyboard shortcuts.
- Supports player‑controlled car mode with cockpit and follow cameras.
- Records lap and sector times for player car and displays best lap results.
-
Modular Servers
- Telemetry Server (
port 8765) - websocket server which streams vehicle + weather frames. - Section Endurance Server (
port 8766) - websocket server which streams lap events. - Leaderboard Server (
port 8767) - websocket server streams race standings. - All servers are lightweight Python scripts using
asyncio+websockets. - Compiled to .exe files with
PyInstaller, which are started with the application. - The servers can be used directly from the dev environment too, for development purposes.
- Telemetry Server (
After building the Unity project, you get a standalone Windows executable (HackTheTrack.exe).
Place the Python server executables (leaderboard_server.exe, section_endurance_server.exe, telemetry_vehicle_server.exe) in the same folder as the Unity build.
- Run the Unity application and start the servers
- Double‑click
HackTheTrack.exe. - The app starts and connects to servers automatically and begins playback.
- They replay CSV logs and stream data over WebSocket.
- If the servers don't start, launch the telemetry, endurance, and leaderboard servers manually.
- Make sure to wait until all servers are running, before starting the main application.
- Interact with the UI
- Use Play/Pause/Reverse buttons to control telemetry playback.
- Adjust playback speed with the slider.
- Toggle weather effects and ghost cars.
- View lap times, charts, and leaderboard updates in real time.
- Spawn your own car and challenge yourself to beat the best racers.
- Quit gracefully
- Press Esc to exit.
- Servers shut down automatically when playback ends or no clients remain.
-
TelemetryReceiver
Connects to the telemetry server, receives telemetry frames, applies weather data, and updates registered vehicles.
Provides playback controls (play, pause, reverse, restart, speed). -
TelemetryVehiclePlayer
Represents a car in the scene. Applies telemetry samples to geometry, wheels, sensors, and track rendering.
Classifies acceleration phases and updates UI values. -
TelemetryUI
Main UI controller for playback and weather toggling.
Displays telemetry values (speed, RPM, gear, throttle, braking, steering, lap distance, forces). -
TelemetryVehicleSelector
Manages vehicle and camera selection.- Registers vehicles and cycles through them.
- Switches between Cinemachine cameras (cockpit, follow, external).
- Supports player‑controlled car mode with lap and sector time recording.
- Keyboard shortcuts:
- X - toggle player car mode.
- C/V - switch cameras.
- R - cycle through vehicles.
- Ctrl - flip follow camera offset.
- Updates UI with current camera label and lap/sector times.
-
WeatherManager
Applies weather data to scene effects (rain, fog, skybox tint, wind, sun).
Infers general condition (Sunny, Rainy, Windy, etc.) and updates UI. -
SectionEnduranceReceiver
Connects to endurance server, receives lap events, stores them per vehicle, and assigns colors.
Provides access to lap events for analytics and UI. -
SectionEnduranceUI
Displays lap times, sector splits, and charts using XCharts.
Supports top‑10 fastest lap analysis and race result visualization. -
LeaderboardReceiver
Connects to leaderboard server, receives race standings, and updates UI.
Stores entries in a dictionary keyed by vehicle ID. -
GPSUtils
Utility for converting GPS coordinates into Unity positions using a local tangent plane approximation.
Supports setting reference origin, scaling, and inverse conversion.
-
telemetry_server.py
Streams telemetry + weather data from CSV logs.
Supports playback controls via WebSocket messages. -
section_endurance_server.py
Streams lap events sequentially from endurance CSV.
Simulates live feed with configurable delay. -
leaderboard_server.py
Streams leaderboard standings from CSV.
Updates positions, laps, gaps, and best lap stats.
-
Download the current build .zip file (only for Windows 10 and 11) from the Github releases section (https://github.com/FireDragonGameStudio/hack-the-track/releases) and extract it into a folder on your system.
-
All necessary files are already in the package. Click on HackTheTrack.exe to start the application.
-
Three CMD windows will pop up and the main menu will be shown. Wait until every CMD windows shows a text, that states "xxxx server running on ws://localhost:xxxx". Please consider, that the starting process of the servers may take longer on older systems. For instance: It took about 4 minutes to start the servers on my 7 year old Surface Pro 5, but on my 2 year old MSI Vector 17 it only takes about 20 seconds.

-
After all three servers are ready, click on the green button and the main scene will be loaded.
-
Click on the green play button on the upper left to start the streaming.
-
You can pause the streaming, when clicking on the pause button on the upper left.
-
Change cameras by pressing C or V.
-
Change the currently selected vehicle by pressing R.
-
Spawn/Unspawn your own car by pressing X. Control the car with WASD and SPACE.
-
Pressing TAB will show the statistics menu with interesting data and charts. Hide it by pressing TAB again.
-
When the statistics menu is active, all other commands will still work.
-
Click on the green buttons in the upper bar, to show the respective data.
- Clone this repository:
git clone https://github.com/FireDragonGameStudio/hack-the-track.git- Install Python dependencies:
pip install pandas websockets python-dateutil- The folder HackTheTrack contains the Unity project, the folder telemetry-server contains all Python scripts for the websocket servers.
- Build the Unity project for Windows.
- Copy server executables and the log files folder into the Unity build folder.
- Run servers and launch the Unity app (or let the Unity app launch everything).
Telemetry Rush demonstrates how data, visualization and interactivity can merge into a compelling racing analytics tool. It’s designed to be accessible: whether you’re a motorsport fan, a data scientist, or a game developer, you can explore racing telemetry in a fun, interactive way.
MIT License - free to use, modify, and share.
- XCharts for Unity - https://github.com/XCharts-Team/XCharts
- Toyota Car Model - https://sketchfab.com/3d-models/toyota-gt86-stock-c4732cfe6f65408eb387668b7a36f768
- Prometeo Car Controller - https://assetstore.unity.com/packages/tools/physics/prometeo-car-controller-209444
- Cartoon Race Track - https://assetstore.unity.com/packages/3d/environments/roadways/cartoon-race-track-oval-175061