# hauskamel/police-interrogation-game architecture

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

- Interactive diagram: https://gitdiagram.com/hauskamel/police-interrogation-game
- Repository: https://github.com/hauskamel/police-interrogation-game

## Overview

This is a small React Three Fiber 3D scene: the browser entry point mounts the app, which builds an interactive scene containing a moving car, road, and streetbay. The components load their corresponding GLB assets; orbit controls let the viewer inspect the scene. The README only documents running the Vite app, so the graph reflects the sampled runtime code rather than broader product claims.

Main entry points: [`src/App.jsx`](https://github.com/hauskamel/police-interrogation-game/blob/master/src/App.jsx) (Scene app), [`src/main.jsx`](https://github.com/hauskamel/police-interrogation-game/blob/master/src/main.jsx) (React mount), [`src/components/Car.jsx`](https://github.com/hauskamel/police-interrogation-game/blob/master/src/components/Car.jsx) (Moving car), [`src/components/Road.jsx`](https://github.com/hauskamel/police-interrogation-game/blob/master/src/components/Road.jsx) (Road mesh)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Runtime entry"]
  node_main["React mount<br/>[main.jsx]"]
end

subgraph group_scene["3D scene"]
  node_app["Scene app<br/>[App.jsx]"]
  node_car["Moving car<br/>[Car.jsx]"]
  node_road["Road mesh<br/>[Road.jsx]"]
  node_streetbay["Streetbay mesh<br/>[Streetbay.jsx]"]
end

subgraph group_assets["3D assets"]
  node_car_model["Car model<br/>[car.glb]"]
  node_road_model["Road model<br/>[road.glb]"]
  node_streetbay_model["Streetbay model<br/>[streetbay.glb]"]
end

node_viewer(("Viewer"))

node_viewer -.->|"views"| node_main
node_main -->|"mounts"| node_app
node_app -->|"renders"| node_car
node_app -->|"renders"| node_road
node_app -->|"renders"| node_streetbay
node_car -->|"loads"| node_car_model
node_road -->|"loads"| node_road_model
node_streetbay -->|"loads"| node_streetbay_model

click node_main "https://github.com/hauskamel/police-interrogation-game/blob/master/src/main.jsx"
click node_app "https://github.com/hauskamel/police-interrogation-game/blob/master/src/App.jsx"
click node_car "https://github.com/hauskamel/police-interrogation-game/blob/master/src/components/Car.jsx"
click node_road "https://github.com/hauskamel/police-interrogation-game/blob/master/src/components/Road.jsx"
click node_streetbay "https://github.com/hauskamel/police-interrogation-game/blob/master/src/components/Streetbay.jsx"
click node_car_model "https://github.com/hauskamel/police-interrogation-game/blob/master/public/models/car.glb"
click node_road_model "https://github.com/hauskamel/police-interrogation-game/blob/master/public/models/road.glb"
click node_streetbay_model "https://github.com/hauskamel/police-interrogation-game/blob/master/public/models/streetbay.glb"

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_main,node_viewer toneBlue
class node_app,node_car,node_road,node_streetbay toneAmber
class node_car_model,node_road_model,node_streetbay_model toneMint
```

## Components

### Runtime entry

- [React mount](https://github.com/hauskamel/police-interrogation-game/blob/master/src/main.jsx): `src/main.jsx`

### 3D scene

- [Scene app](https://github.com/hauskamel/police-interrogation-game/blob/master/src/App.jsx): `src/App.jsx`
- [Moving car](https://github.com/hauskamel/police-interrogation-game/blob/master/src/components/Car.jsx): `src/components/Car.jsx`
- [Road mesh](https://github.com/hauskamel/police-interrogation-game/blob/master/src/components/Road.jsx): `src/components/Road.jsx`
- [Streetbay mesh](https://github.com/hauskamel/police-interrogation-game/blob/master/src/components/Streetbay.jsx): `src/components/Streetbay.jsx`

### 3D assets

- [Car model](https://github.com/hauskamel/police-interrogation-game/blob/master/public/models/car.glb): `public/models/car.glb`
- [Road model](https://github.com/hauskamel/police-interrogation-game/blob/master/public/models/road.glb): `public/models/road.glb`
- [Streetbay model](https://github.com/hauskamel/police-interrogation-game/blob/master/public/models/streetbay.glb): `public/models/streetbay.glb`

### Other components

- **Viewer**

## Connections

- Viewer → React mount: views
- React mount → Scene app: mounts (evidence: `src/main.jsx`)
- Scene app → Moving car: renders (evidence: `src/App.jsx`)
- Scene app → Road mesh: renders (evidence: `src/App.jsx`)
- Scene app → Streetbay mesh: renders (evidence: `src/App.jsx`)
- Moving car → Car model: loads (evidence: `src/components/Car.jsx`)
- Road mesh → Road model: loads (evidence: `src/components/Road.jsx`)
- Streetbay mesh → Streetbay model: loads (evidence: `src/components/Streetbay.jsx`)
