Skip to content

Add a tunnel through the hill of the 3D GTA with a map - #1089

Merged
4ian merged 3 commits into
claude/stoic-archimedes-ovjmdifrom
claude/stoic-archimedes-ovjmdi-holes
Oct 14, 2026
Merged

4ian merged 3 commits into
claude/stoic-archimedes-ovjmdifrom
claude/stoic-archimedes-ovjmdi-holes

Conversation

@4ian

@4ian 4ian commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

This uses the terrain holes from GDevelopApp/GDevelop-extensions#2308. It's stacked on the scattered models PR (#1084), whose forests it edits. The project embeds the Terrain3D extension with all three features: scattered models, color and wetness, and holes.

West entrance East entrance
Driving through Coming out

The west entrance seen from above

What changed

  • Terrain edits (in its Edits property):
    • two ramps flattened down to the tunnel floor, using the new toZ of flatten for the slope;
    • asphalt painted from the country road to both entrances;
    • a ledge above each portal;
    • 18 narrow hole strokes. They cover exactly the terrain samples that would be inside the tunnel, which I picked from the ground heights so that only the tunnel is ever seen through the holes.
  • Tunnel object: a 3D model, assets/Tunnel.glb. It's a 1440 px long tube with a road, painted lines and a concrete arch, rising 125 px from west to east. It has a Physics 3D static Mesh shape. Concrete portal blocks at both ends fill the space between the tube and the ground. Without them, a hole cut through a slope lets you see under the hill at grazing angles. The model was generated by a script for this example, and is CC0.
  • Forests: trees and bushes are erased in front of both entrances.
  • "Tunnel camera" events: when the driven car is under the ground, the third person camera comes closer, so that it stays inside the tunnel. It goes back to its usual distance afterwards.
  • README: a paragraph about the tunnel.

How it was tested

The gameplay tests run with the CLI test runner: 9/9 pass. Two are new:

  • A car drives through the tunnel and comes out on the other side, on its wheels. The car starts on the west ramp holding W. It goes up to 337 px under the ground, stays within 61 px of the middle of the tunnel, and comes out at x=3508, on the floor, tilted under 8°.
  • Holes in the ground are seen through, and let objects fall until they are filled. It checks that:
    • there are holes at the entrances, with NaN collision samples;
    • a ray goes through an entrance but hits the road in front of it;
    • a box falls through a new hole made in a field, then lands on the ground (within 1 px) once the hole is painted over.

The forest test's expected counts went from 156/91/152 to 143/85/141, because of the trees erased in front of the entrances. The counts are still deterministic: the test passes after a scene restart.

Not checked

  • Driving through with mobile controls, and on a real phone (only the software renderer of the test runner).
  • Steering into the walls at full speed: the walls are part of the mesh collision shape, but only driving straight through is tested.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BJr8NHQoc1VdQ5fSM9TPzT


Generated by Claude Code

The entrances are holes in the terrain (hole edits), and the tunnel is a
3D model under the ground with a mesh collision shape. Concrete portals
fill the space between the tunnel and the ground, so that only the tunnel
is seen through the holes. In the tunnel, the camera following the car
comes closer to stay inside.

Gameplay tests: a car drives through the tunnel and comes out on its
wheels; holes are seen through, and a box falls through a hole until it's
filled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BJr8NHQoc1VdQ5fSM9TPzT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BJr8NHQoc1VdQ5fSM9TPzT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BJr8NHQoc1VdQ5fSM9TPzT
@github-actions

Copy link
Copy Markdown
Contributor

Preview the game(s) changed or added in this Pull Request


This is an automatic message displaying links to the games in this PR - double check the JSON in case of doubt.

@4ian
4ian added this pull request to stack #1090 October 14, 2026 08:25
@4ian
4ian merged commit a1f5f8b into main Oct 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants