pokepetter / ursina

A game engine powered by python and panda3d.
https://pokepetter.github.io/ursina/
MIT License
2.23k stars 328 forks source link

Create HexGrid Class #724

Open f-bdolan opened 1 month ago

f-bdolan commented 1 month ago

Ursina offers an out-of-the-box Grid class here

Arguments could include

Another useful class would be a HexGrid version. This would be a hexmat style instead of rectangles. Some minor radius calculations would be necessary. Key facts can be find here for instance.

Quick definitions for a regular hexagon (one with all equal sides)

Might be a good first issue.