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

Added a create rectangle button to the tileset editor. #26085

Merged
merged 1 commit into from
Feb 20, 2019

Conversation

mrcdk
Copy link
Contributor

@mrcdk mrcdk commented Feb 20, 2019

It makes easier to create collision/occlusion/navigation shapes covering the full tile.

https://i.imgur.com/9w3pZxH.gifv

It still creates a ConvexPolygonShape2D under the hood.

IMO, The UX is still pretty bad but it's better than before where you had to click each tile's four corners to create a shape.

It makes easier to create collision shapes covering the full tile.
@akien-mga
Copy link
Member

It still creates a ConvexPolygonShape2D under the hood.

Is there a specific reason for not using RectangleShape2D in this case?

@mrcdk
Copy link
Contributor Author

mrcdk commented Feb 20, 2019

Is there a specific reason for not using RectangleShape2D in this case?

AFAIK occlusion and navigation can only use polygons and I didn't want to deal with the specific part of the code that deals with creating the shapes 😅

@akien-mga akien-mga merged commit 1f257d3 into godotengine:master Feb 20, 2019
@akien-mga
Copy link
Member

Thanks!

@mrcdk mrcdk deleted the tileset_shape_rectangle branch January 20, 2024 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants