Skip to content

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

Open
4ian wants to merge 3 commits into
mainfrom
claude/fervent-euler-v7iva7
Open

4ian wants to merge 3 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.

Because the shell now leaves along the cannon, a raised cannon fires higher than before: the old impulse halved the cannon's elevation. CannonWidth, CannonInfo and their extension variable are removed.

Haunted house (starting-expanded-3d-house-horror): the key and the front door use the new "Distance between two objects (3D)" condition 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.

The other 3D starters keep the 2D distance on purpose: it's measured on the ground plane, for example to get into a vehicle, or for the radius in which an enemy hears the player.

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 three 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, and the key and door from each floor of the house.

🤖 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 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Tk9so3zqwFutR1h9SJnQQS
@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 <[email protected]>
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
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