Repository navigation
Add a tunnel through the hill of the 3D GTA with a map - #1089
Merged
4ian merged 3 commits intoOct 14, 2026
Merged
Conversation
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
Contributor
Preview the game(s) changed or added in this Pull RequestThis is an automatic message displaying links to the games in this PR - double check the JSON in case of doubt. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
What changed
toZof flatten for the slope;holestrokes. 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.Tunnelobject: 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.How it was tested
The gameplay tests run with the CLI test runner: 9/9 pass. Two are new:
NaNcollision samples;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
🤖 Generated with Claude Code
https://claude.ai/code/session_01BJr8NHQoc1VdQ5fSM9TPzT
Generated by Claude Code