{"id":21041734,"url":"https://github.com/quantumplation/bevy-hex-example","last_synced_at":"2025-09-05T08:32:02.661Z","repository":{"id":136844705,"uuid":"325445310","full_name":"Quantumplation/bevy-hex-example","owner":"Quantumplation","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-23T18:59:15.000Z","size":2169,"stargazers_count":15,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-26T23:49:21.129Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Quantumplation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-30T03:30:38.000Z","updated_at":"2024-08-17T20:32:21.000Z","dependencies_parsed_at":"2023-12-23T21:31:12.869Z","dependency_job_id":null,"html_url":"https://github.com/Quantumplation/bevy-hex-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quantumplation%2Fbevy-hex-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quantumplation%2Fbevy-hex-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quantumplation%2Fbevy-hex-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quantumplation%2Fbevy-hex-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Quantumplation","download_url":"https://codeload.github.com/Quantumplation/bevy-hex-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232032048,"owners_count":18462966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T13:56:01.379Z","updated_at":"2024-12-31T21:43:25.315Z","avatar_url":"https://github.com/Quantumplation.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bevy 3D Hex Example\n\nI put together a small 3D hex grid for a game I was working on, and there was some interest in how I achieved that.  I extracted that code into this repository for people to learn from.\n\nIt was heavily inspired by two main resources:\n - [Redblobgames' excellent writeup on hex grids](https://www.redblobgames.com/grids/hexagons/#map-storage)\n - [Catlike Coding's tutorial series on hex grids in unity](https://catlikecoding.com/unity/tutorials/hex-map/)\n\n## Screen recording\n\n[bevy-hex-example.webm](https://github.com/kolbma/bevy-hex-example/assets/5228369/98a46f67-465f-4508-ad0a-4570eab237fe)\n\n## Outline\n\nI recommend perusing the source in this order:\n\n - hex.rs: Simple hex-coordinate operations, such as neighbors and the like\n - geometry.rs: Generates 3D points for a simple hex mesh\n - main.rs: Wires this together to set up a bevy scene \n\n## Future\n\nI don't have a lot of free time, so I didn't wrap this up in a bevy plugin for use by the community.  If there's substantial interest, however, I might be talked into that.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantumplation%2Fbevy-hex-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquantumplation%2Fbevy-hex-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantumplation%2Fbevy-hex-example/lists"}