Godot exporter collision fix by ryanpetrie · Pull Request #3862 · mapeditor/tiled (original) (raw)
Navigation Menu
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Merged
merged 4 commits into
Jan 30, 2024
Conversation
The exporter was incorrectly using the collision object's X and Y position as a part of the tile's center. Fixed the calculation for both rectangles and polygons. Tested on a local Windows build.
Seems to be no reason to round the polygons to pixels, since the collision shape is defined by an array of floating point Vector2.
Nicely spotted and thanks for the fix!
bjorn mentioned this pull request
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
[ Show hidden characters]({{ revealButtonHref }})