Godot exporter collision fix by ryanpetrie · Pull Request #3862 · mapeditor/tiled (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

bjorn

merged 4 commits into

Jan 30, 2024

Conversation

@ryanpetrie

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.

@ryanpetrie @bjorn

@ryanpetrie @bjorn

@bjorn

Seems to be no reason to round the polygons to pixels, since the collision shape is defined by an array of floating point Vector2.

@bjorn

@bjorn

Nicely spotted and thanks for the fix!

@bjorn bjorn mentioned this pull request

May 13, 2024

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 }})

2 participants

@ryanpetrie @bjorn