RACE AI - Unity Racing AI Simulation

May 9, 2025 · View on GitHub


Overview

GS RACE AI is a sophisticated Unity-based racing AI simulation project designed for autonomous vehicle behavior in racing scenarios. The project demonstrates professional-grade AI systems, advanced vehicle physics, and multi-agent racing capabilities.

This platform is ideal for research, game development, and AI-driven simulation for racing games.


Features

Vehicle Physics

  • Realistic wheel colliders and suspension
  • Configurable drive types: FWD, RWD, AWD
  • 5-speed gear system with torque distribution
  • Differential system for stability and torque vectoring
  • Pacejka tire model for professional tire simulation
  • Speed-adaptive steering sensitivity
  • Advanced telemetry integration via SpeedMeterUI

AI Systems

  • Pathfinding using Unity NavMesh
  • Rule-based decision making: braking, overtaking, reversing
  • Multi-sensor obstacle detection (8 directions)
  • Real-time opponent analysis and tactical behavior
  • Drafting and cornering optimization
  • Multi-agent team coordination
  • Weather adaptation: Rain, Fog, Snow

Game & Scene Management

  • Dynamic AI and player vehicle spawning
  • Race position tracking and lap counting
  • Smooth camera transitions
  • Simulation speed controls and pause/reset functionality
  • Multi-car race scenarios (2-4 AI cars)
  • Player vs AI integration
  • Complex urban and track environments

Editor & Debugging Tools

  • Waypoints editor for custom track setup
  • Gizmos for pathfinding and sensor debugging
  • Dynamic UI system for per-vehicle telemetry

Technical Highlights

  • Modular architecture using partial classes for clean separation
  • Optimized AI pathfinding and sensor systems
  • Plugin-ready design for extensibility
  • Real-time adaptation for environment and opponent behavior
  • Industry-standard physics and tire models
  • Comprehensive debugging and telemetry tools

Scenes Overview

SceneDescription
Scene 0Basic car controller & AI
Scene 1Car model showcase
Scene 2Static obstacle navigation
Scene 3Dynamic obstacle avoidance
Scene 4Player vs single AI
Scene 5Differential system demonstration
Scene 62 AI cars racing
Scene 74 AI cars competition
Scene 8Player vs 3 AI cars
City SceneComplex urban environment racing

Getting Started

Requirements

  • Unity 2021.3+ or higher
  • Windows/macOS/Linux
  • Standard Input devices for player testing

Installation

  1. Clone the repository
git clone <repository-url>
  1. Open in Unity
  2. Load desired scene from Scenes/ folder
  3. Press Play to run the simulation

Running AI Simulations

  • Select AI vehicles and assign their behaviors
  • Configure waypoint tracks
  • Adjust weather parameters if needed
  • Observe tactical decision-making and racing dynamics

Contributing

  • Contributions are welcome via pull requests
  • Please maintain descriptive commit messages
  • Follow the modular architecture and naming conventions

License

This project is proprietary to Gamescepter. For commercial or research licensing, please contact Gamescepter.


References


Notes

  • All core systems, AI modules, physics systems from your document included
  • Scenes table added for clarity
  • Clean Markdown, badges, headings — GitHub friendly
  • “Getting Started” + “Contributing” sections included for repo usage