Repository navigation
Use the 3D features of GDevelop 5.6.286 in the 3D tank, haunted house and GTA starters - #1105
Merged
Merged
Conversation
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
Contributor
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
- 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
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.
Needs GDevelop 5.6.286. Don't merge before it is released.
Tank (
starting-3d-tank,starting-expanded-3d-tank):MuzzleX/Y/Z(), and the direction it points at,AimDirectionX/Y/Z(). They are computed with the newToParentX/Y/ZandToParentDirectionX/Y/Zat each level.CannonWidth,CannonInfoand 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'
gdevelopVersionis 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:
🤖 Generated with Claude Code
https://claude.ai/code/session_01Tk9so3zqwFutR1h9SJnQQS