Hexagonal grids are used in some games but aren’t quite as straightforward or common as square grids. I’ve been using hex grid for more than three years, and published this code that lead to the simplest formation of a hexagonal grid.
While using this code, please, cite our paper, for which the code was developed, "Measuring Behaviour as Perceptual Control Using Human Simulations of Predator and Prey Pursuit." S. Sandhu, T. Gulrez, M. Parker, W. Mansell. Measuring Behavior 2018, Manchester, UK.
Cite As
Tauseef Gulrez (2024). Hex_grid_generator (https://github.com/PCT-Models/predatorprey), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Deep Learning Toolbox > Function Approximation, Clustering, and Control > Function Approximation and Clustering > Clustering >
Tags
Acknowledgements
Inspired: Hex_grid_circular, 3D Hex Grid Generator
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
Version | Published | Release Notes | |
---|---|---|---|
2.0.0.4 | Github website. |
|
|
2.0.0.3 | . |
||
2.0.0.2 | . |
||
2.0.0.1 | Full grid lines are added. |
||
2.0.0.0 | .
|
||
1.0.0.0 | . .
|