godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.05k stars 65 forks source link

Add functionality to tilemap that automatically sets precise colisions in the shape of the tile. #9627

Closed RakibRyan closed 2 weeks ago

RakibRyan commented 2 weeks ago

Describe the project you are working on

a tilemap based game where a lot of tiles aren't square.

Describe the problem or limitation you are having in your project

When working with non square tiles manual collision shape setup becomes tedious.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

add a button in tilemap that when pressed the physics layer in tile autosets to shape of the tile.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

it could be like unity's auto colission shape.

If this enhancement will not be used often, can it be worked around with a few lines of script?

the enhancement will be used often if people had access to it.

Is there a reason why this should be core and not an add-on in the asset library?

it's too small to be it's own asset and too tedious to not be in core engine.

AThousandShips commented 2 weeks ago

Please explain some more details on what this would mean. Would it detect non-transparent pixels? Should it be strictly convex or concave as well? How would yo activate this? People aren't guaranteed to have used unity or this specific feature so please explain it instead