# winter-r/formula-nil architecture

> Architecture diagram of the GitHub repository winter-r/formula-nil, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/winter-r/formula-nil
- Repository: https://github.com/winter-r/formula-nil

## Overview

F - NIL is a Unity F1 simulator focused on driving a car and exploring vehicle behavior, including Ackermann steering, power curves, and gear shifting. The tree shows input-action assets, car and circuit models, and a car-friction physics material, but no gameplay source excerpts. The graph therefore preserves the documented driving and vehicle-dynamics stages while marking connections as unverified; it does not infer which scripts implement them.

Main entry points: [`Assets/Input/InputActions.inputactions`](https://github.com/winter-r/formula-nil/blob/main/Assets/Input/InputActions.inputactions) (Input Actions), [`Assets/Bahrain International Circuit/Bahrain Circuit.fbx`](https://github.com/winter-r/formula-nil/blob/main/Assets/Bahrain%20International%20Circuit/Bahrain%20Circuit.fbx) (Circuit), [`Assets/Models/Circuit.fbx`](https://github.com/winter-r/formula-nil/blob/main/Assets/Models/Circuit.fbx) (Circuit Models), [`Assets/Models/Car.fbx`](https://github.com/winter-r/formula-nil/blob/main/Assets/Models/Car.fbx) (Car Model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_drive["Driving"]
  node_controls["Input Actions"]
end

subgraph group_vehicle["Vehicle Dynamics"]
  node_vehicle_behavior["Vehicle Behavior"]
  node_car_model["Car Model<br/>[Car.fbx]"]
  node_tire_friction["Car Friction"]
end

subgraph group_world["Track Assets"]
  node_circuit["Circuit"]
  node_circuit_assets["Circuit Models<br/>[Circuit.fbx]"]
end

node_player(("Player"))

node_player -.->|"provides input"| node_controls
node_controls -.->|"drives"| node_vehicle_behavior
node_vehicle_behavior -.->|"controls"| node_car_model
node_vehicle_behavior -.->|"uses friction"| node_tire_friction
node_player -.->|"drives on"| node_circuit
node_circuit_assets -.->|"represents track"| node_circuit

click node_controls "https://github.com/winter-r/formula-nil/blob/main/Assets/Input/InputActions.inputactions"
click node_car_model "https://github.com/winter-r/formula-nil/blob/main/Assets/Models/Car.fbx"
click node_tire_friction "https://github.com/winter-r/formula-nil/blob/main/Assets/CarFriction.physicMaterial"
click node_circuit "https://github.com/winter-r/formula-nil/blob/main/Assets/Bahrain%20International%20Circuit/Bahrain%20Circuit.fbx"
click node_circuit_assets "https://github.com/winter-r/formula-nil/blob/main/Assets/Models/Circuit.fbx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_controls toneBlue
class node_vehicle_behavior,node_car_model,node_tire_friction toneAmber
class node_circuit,node_circuit_assets toneMint
class node_player toneIndigo
```

## Components

### Driving

- [Input Actions](https://github.com/winter-r/formula-nil/blob/main/Assets/Input/InputActions.inputactions): `Assets/Input/InputActions.inputactions`

### Vehicle Dynamics

- **Vehicle Behavior**
- [Car Model](https://github.com/winter-r/formula-nil/blob/main/Assets/Models/Car.fbx): `Assets/Models/Car.fbx`
- [Car Friction](https://github.com/winter-r/formula-nil/blob/main/Assets/CarFriction.physicMaterial): `Assets/CarFriction.physicMaterial`

### Track Assets

- [Circuit](https://github.com/winter-r/formula-nil/blob/main/Assets/Bahrain%20International%20Circuit/Bahrain%20Circuit.fbx): `Assets/Bahrain International Circuit/Bahrain Circuit.fbx`
- [Circuit Models](https://github.com/winter-r/formula-nil/blob/main/Assets/Models/Circuit.fbx): `Assets/Models/Circuit.fbx`

### Other components

- **Player**

## Connections

- Player → Input Actions: provides input
- Input Actions → Vehicle Behavior: drives
- Vehicle Behavior → Car Model: controls
- Vehicle Behavior → Car Friction: uses friction
- Player → Circuit: drives on
- Circuit Models → Circuit: represents track
