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

Add an honeycomb/hexagon collision shape #663

Closed
git2013vb opened this issue Apr 2, 2020 · 10 comments
Closed

Add an honeycomb/hexagon collision shape #663

git2013vb opened this issue Apr 2, 2020 · 10 comments

Comments

@git2013vb
Copy link

Describe the project you are working on:
client server
Describe the problem or limitation you are having in your project:
I have difficult to setup team in field when I use current collision shapes
Describe the feature / enhancement and how it helps to overcome the problem or limitation:

I wold like to have a honeycomb collision shape
https://en.wikipedia.org/wiki/Honeycomb_structure
https://en.wikipedia.org/wiki/Hexagon

to minimize space
to set an ordered structure
to allow a more fluid and structured movement (using move and slide)

Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:

We have already a "circle" shape that isn't really a circle but a https://en.wikipedia.org/wiki/Icositetragon

It will suffice to make a new shape from it and divide its sides by 4 :)

If this enhancement will not be used often, can it be worked around with a few lines of script?:
I have no idea :)
Is there a reason why this should be core and not an add-on in the asset library?:
Of course :)

@groud
Copy link
Member

groud commented Apr 2, 2020

We have already a "circle" shape that isn't really a circle

If I am not mistaking, only the visible circle is a polygon. Internally the collisions behave as if it was a perfect circle.

@git2013vb
Copy link
Author

We have already a "circle" shape that isn't really a circle

If I am not mistaking, only the visible circle is a polygon. Internally the collisions behave as if it was a perfect circle.

No idea. :)
Off-Topic: How I can show just the perimeter for any collision shape? Silly question I know :)

@Calinou
Copy link
Member

Calinou commented Apr 3, 2020

Off-Topic: How I can show just the perimeter for any collision shape? Silly question I know :)

Do you mean displaying only the edge without filling the inside? I'm afraid that's not possible unless you write a script to do this manually. That said, godotengine/godot#34923 will make it possible to distinct adjacent collision shapes more easily.

@Calinou Calinou changed the title New collision shape Add an honeycomb/hexagon collision shape Apr 7, 2020
@aaronfranke
Copy link
Member

If this enhancement will not be used often, can it be worked around with a few lines of script?:
I have no idea :)
Is there a reason why this should be core and not an add-on in the asset library?:
Of course :)

Closing due to the proposal template not being properly filled out.

If you are proposing an addition to Godot, you must provide justification.

@git2013vb
Copy link
Author

git2013vb commented Apr 10, 2020

You close my request due of no reasonable motivations
Thank you for your effort.
There are my justifications:
If you even bother to read my post.

to minimize space
to set an ordered structure
to allow a more fluid and structured movement (using move and slide)

Edit: sorry but people like you make people like me willing to give up and choose another game engine.

@aaronfranke
Copy link
Member

aaronfranke commented Apr 10, 2020

Those are not justifications for being included in the engine, they are justifications for your use case.

You can do this kind of thing in your own code, without it being in the engine.

@git2013vb
Copy link
Author

git2013vb commented Apr 10, 2020

Those are not justifications for being included in the engine, they are justifications for your use case.

If I can use for my case so everyone can do the same. I still not understand your hidden meaning
edit: I cannot do it in my code. Unless you can explain me how to do it.

@aaronfranke
Copy link
Member

This is why the question "Is there a reason why this should be core and not an add-on in the asset library?" exists. If other people can find it useful, then this feature can be placed in an asset. Then anyone can open Godot, search the asset library for "hexagon", and download an asset with this feature.

GitHub is not a support forum, if you'd like help consider asking on Discord or Reddit or elsewhere.

@git2013vb
Copy link
Author

This is why the question "Is there a reason why this should be core and not an add-on in the asset library?" exists. If other people can find it useful, then this feature can be placed in an asset. Then anyone can open Godot, search the asset library for "hexagon", and download an asset with this feature.

GitHub is not a support forum, if you'd like help consider asking on Discord or Reddit or elsewhere.

Is related with Collision Shape. Nothing else. If you can read again my post you understand that is not related to any plugin.

@aaronfranke
Copy link
Member

For example, CollisionPolygon2D can become any shape if you specify vertices.

@godotengine godotengine locked as resolved and limited conversation to collaborators Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants