Game development · 3D
Offroad Adventure 4x4
Off-road driving prototype in Godot 4: a 4x4 with raycast suspension on a streamed, procedurally generated forest with weather and LAN multiplayer.

Overview
A personal off-road driving game built in Godot 4. The world is generated from a deterministic height function with a winding dirt trail and is streamed in chunks on worker threads, with collision and vegetation level of detail per chunk. The 4x4 uses raycast suspension, a gearbox, a winch and dust effects, and its body, glass, lights and tyres are modelled in code. Custom shaders blend grass, dirt and rock on the terrain and add wetness, tyre ruts and mud on the paint; weather cycles between clear, rain and dusk, and two players can drive together over ENet.
Architecture
Players (Keyboard & mouse, Second player (LAN)) → Input · ENet sync → Game logic (VehicleBody3D 4x4, Chase camera, Weather & checkpoints) → Vehicle position → World streaming (Height function & trail, Chunks on WorkerThreadPool, Vegetation LOD) → Chunk meshes → Rendering (Terrain & foliage shaders, Car paint shader, HDRI skies)
Key features
- VehicleBody3D 4x4 with raycast suspension, gearbox, handbrake drifts, headlights and a winch
- Deterministic terrain with a winding trail, streamed in chunks on WorkerThreadPool with HeightMap collision
- Procedural pine and broadleaf trees, grass clumps and rocks with level of detail
- Off-road vehicle modelled in code: bevelled body, glass, lights and knobby tyres
- Shaders for terrain splatting with wetness and tyre ruts, foliage, grass and muddy car paint
- Clear, rain and dusk weather with HDRI skies; chase, hood and far cameras
- Checkpoint trail with waypoints, and LAN multiplayer over ENet with transform and weather sync
Tech stack
- Godot 4
- GDScript
- Shaders
- ENet
Screenshots
Want the details behind this project?
I'm happy to walk through the architecture, trade-offs and what I'd do differently.