Repository navigation
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 <[email protected]> Claude-Session: https://claude.ai/code/session_01Tk9so3zqwFutR1h9SJnQQS
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. |
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
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): 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 newToParentX/Y/ZandToParentDirectionX/Y/Zat 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,CannonInfoand 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'
gdevelopVersionis 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