Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Godot exporter collision fix #3862

Merged
merged 4 commits into from
Jan 30, 2024

Conversation

ryanpetrie
Copy link
Contributor

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 and others added 4 commits January 30, 2024 17:57
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 force-pushed the godot-exporter-collision-fix branch from aff6170 to ee121ff Compare January 30, 2024 16:58
@bjorn
Copy link
Member

bjorn commented Jan 30, 2024

Nicely spotted and thanks for the fix!

@bjorn bjorn merged commit b236017 into mapeditor:master Jan 30, 2024
11 of 12 checks passed
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