# dashoe1/godot-easy-vehicle-physics architecture

> Architecture diagram of the GitHub repository dashoe1/godot-easy-vehicle-physics, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dashoe1/godot-easy-vehicle-physics
- Repository: https://github.com/dashoe1/godot-easy-vehicle-physics

## Overview

Godot Easy Vehicle Physics is a ray-cast-based rigid-body vehicle controller for Godot 4.2+. The principal workflow is keyboard driving through the vehicle controller, which provides drivetrain, suspension, grip, and stability features; the README says suspension spring and damping parameters are calculated from ratios and weight distribution. Four example scenes demonstrate different handling setups. The README documents capabilities and controls but no source excerpts were provided, so implementation relationships beyond those statements are not asserted.

Main entry points: [`addons/gevp/scripts/vehicle.gd`](https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scripts/vehicle.gd) (Vehicle Controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Vehicle Runtime"]
  node_controller["Vehicle Controller<br/>[vehicle.gd]"]
  node_suspension["Suspension Calculation<br/>[vehicle.gd]"]
  node_gearbox["Gearbox and Differentials<br/>[vehicle.gd]"]
end

subgraph group_assists["Driving Systems"]
  node_steering["Steering Assists<br/>[vehicle.gd]"]
  node_traction["Traction and Grip<br/>[vehicle.gd]"]
  node_braking["Anti-Lock Brakes<br/>[vehicle.gd]"]
  node_stability["Stability and Air Assist<br/>[vehicle.gd]"]
end

subgraph group_examples["Examples and UI"]
  node_arcade["Arcade Demo<br/>[demo_arcade.tscn]"]
  node_simcade["Simcade Demo<br/>[demo_simcade.tscn]"]
  node_monster["Monster Truck Demo"]
  node_drift["Drift Demo<br/>[demo_drift.tscn]"]
  node_debug["Debug UI<br/>[debug_ui.gd]"]
end

node_driver(("Driver"))

node_driver -->|"drives with"| node_controller
node_controller -->|"calculates"| node_suspension
node_controller -->|"provides"| node_steering
node_controller -->|"provides"| node_traction
node_controller -->|"provides"| node_braking
node_controller -->|"provides"| node_stability
node_controller -->|"provides"| node_gearbox

click node_controller "https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scripts/vehicle.gd"
click node_suspension "https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scripts/vehicle.gd"
click node_steering "https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scripts/vehicle.gd"
click node_traction "https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scripts/vehicle.gd"
click node_braking "https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scripts/vehicle.gd"
click node_stability "https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scripts/vehicle.gd"
click node_gearbox "https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scripts/vehicle.gd"
click node_arcade "https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scenes/demo_arcade.tscn"
click node_simcade "https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scenes/demo_simcade.tscn"
click node_monster "https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scenes/demo_monster_truck.tscn"
click node_drift "https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scenes/demo_drift.tscn"
click node_debug "https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scripts/debug_ui.gd"

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_controller,node_suspension,node_gearbox toneBlue
class node_steering,node_traction,node_braking,node_stability toneAmber
class node_arcade,node_simcade,node_monster,node_drift,node_debug toneMint
class node_driver toneIndigo
```

## Components

### Vehicle Runtime

- [Vehicle Controller](https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scripts/vehicle.gd): `addons/gevp/scripts/vehicle.gd`
- [Suspension Calculation](https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scripts/vehicle.gd): `addons/gevp/scripts/vehicle.gd`
- [Gearbox and Differentials](https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scripts/vehicle.gd): `addons/gevp/scripts/vehicle.gd`

### Driving Systems

- [Steering Assists](https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scripts/vehicle.gd): `addons/gevp/scripts/vehicle.gd`
- [Traction and Grip](https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scripts/vehicle.gd): `addons/gevp/scripts/vehicle.gd`
- [Anti-Lock Brakes](https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scripts/vehicle.gd): `addons/gevp/scripts/vehicle.gd`
- [Stability and Air Assist](https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scripts/vehicle.gd): `addons/gevp/scripts/vehicle.gd`

### Examples and UI

- [Arcade Demo](https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scenes/demo_arcade.tscn): `addons/gevp/scenes/demo_arcade.tscn`
- [Simcade Demo](https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scenes/demo_simcade.tscn): `addons/gevp/scenes/demo_simcade.tscn`
- [Monster Truck Demo](https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scenes/demo_monster_truck.tscn): `addons/gevp/scenes/demo_monster_truck.tscn`
- [Drift Demo](https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scenes/demo_drift.tscn): `addons/gevp/scenes/demo_drift.tscn`
- [Debug UI](https://github.com/dashoe1/godot-easy-vehicle-physics/blob/main/addons/gevp/scripts/debug_ui.gd): `addons/gevp/scripts/debug_ui.gd`

### Other components

- **Driver**

## Connections

- Driver → Vehicle Controller: drives with (evidence: `README.md`)
- Vehicle Controller → Suspension Calculation: calculates (evidence: `README.md`)
- Vehicle Controller → Steering Assists: provides (evidence: `README.md`)
- Vehicle Controller → Traction and Grip: provides (evidence: `README.md`)
- Vehicle Controller → Anti-Lock Brakes: provides (evidence: `README.md`)
- Vehicle Controller → Stability and Air Assist: provides (evidence: `README.md`)
- Vehicle Controller → Gearbox and Differentials: provides (evidence: `README.md`)
