Skip to content

Use the 3D features of GDevelop 5.6.286 in the 3D tank, haunted house and GTA starters - #1105

Merged
4ian merged 5 commits into
mainfrom
claude/fervent-euler-v7iva7
Nov 3, 2026
Merged

4ian merged 5 commits into
mainfrom
claude/fervent-euler-v7iva7

Conversation

@4ian

@4ian 4ian commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Needs GDevelop 5.6.286. Don't merge before it is released.

Tank (starting-3d-tank, starting-expanded-3d-tank):

  • The tank (a custom object containing the tank top, a custom object containing the cannon) now gives the end of its cannon, MuzzleX/Y/Z(), and the direction it points at, AimDirectionX/Y/Z(). They are computed with the new ToParentX/Y/Z and ToParentDirectionX/Y/Z at each level.
  • The shell starts at the muzzle and is turned and pushed along the cannon. Before, this was approximated from the turret rotation, the cannon angle and the tank tilt, and was off whenever the tank was on a slope. A raised cannon now fires higher than before: the old impulse halved the cannon's elevation.
  • The blast radius and its push are measured in 3D: a shell exploding high up no longer blows away the targets below it.
  • CannonWidth, CannonInfo and their extension variable are removed.

Haunted house (starting-expanded-3d-house-horror): the key and the front door use "Distance between two objects (3D)" instead of the 2D distance followed by a comparison of the objects' Z. They can only be reached from their own floor, from as far as before.

GTA (starting-3d-grand-theft-auto, starting-expanded-3d-grand-theft-auto): getting into a car uses the 3D distance. The player no longer gets into a car parked above them. On the same ground, the reach is 94 px instead of 98 px, because a car's center is 29 px higher than the player's feet.

The other 3D starters keep the 2D distance on purpose: it's the radius in which an enemy hears the player, or a distance on the ground.

Minimum version: the examples' gdevelopVersion is now also computed from the new 3D conditions and expressions (Distance3D, IsTurnedTowardObject3D, the 3D distances, the conversions of custom objects). These five starters need >=5.6.286, so older editors ask for an update. When several features are used, the most recent version wins.

Tested with the starters' gameplay tests and extra tests:

  • the tank's muzzle and aim direction against the cannon drawn by the renderer, with the tank tilted;
  • the key and the door from each floor of the house;
  • getting into a car from the street, but not into the one parked above it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Tk9so3zqwFutR1h9SJnQQS

The tank of the 3D tank starters returns the position of the end of its
cannon (MuzzleX/Y/Z) and the direction it points at (AimDirectionX/Y/Z), with
the conversions of custom objects to their parent: the shell starts there,
turned and pushed along the cannon, whatever the turret, the elevation of the
cannon and the slope the tank is on.

These conversions come with GDevelop 5.6.286: examples using them now need it.

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

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

@4ian 4ian changed the title Fire the tank shells from the end of the cannon, along it [WAIT for 286] Fire the tank shells from the end of the cannon, along it Oct 28, 2026
The key and the front door are reached from their own floor only: the
distance in 3D replaces the distance on X/Y followed by a comparison of the Z
of the objects. The reach on the same floor is unchanged (145 px between the
centers of the player and of the door is 130 px on X/Y, as before).

Examples using the 3D distances or "turned toward" in 3D need GDevelop 5.6.286.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tk9so3zqwFutR1h9SJnQQS
@4ian 4ian changed the title [WAIT for 286] Fire the tank shells from the end of the cannon, along it Use the 3D features of GDevelop 5.6.286 in the 3D tank and haunted house starters Oct 28, 2026
- Tank: a shell exploding high up blows away the targets around it, not the
  ones below it. The push still weakens with the distance, now in 3D.
- GTA: the player gets into a car next to them, not into one parked above
  them. On the same ground, the reach is 94 px instead of 98 px (the center
  of a car is 29 px higher than the feet of the player).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tk9so3zqwFutR1h9SJnQQS
@4ian 4ian changed the title Use the 3D features of GDevelop 5.6.286 in the 3D tank and haunted house starters Use the 3D features of GDevelop 5.6.286 in the 3D tank, haunted house and GTA starters Nov 3, 2026
@4ian
4ian merged commit c8ba557 into main Nov 3, 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