Skip to content

Quantumplation/bevy-hex-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bevy 3D Hex Example

I 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.

It was heavily inspired by two main resources:

Screen recording

bevy-hex-example.webm

Outline

I recommend perusing the source in this order:

  • hex.rs: Simple hex-coordinate operations, such as neighbors and the like
  • geometry.rs: Generates 3D points for a simple hex mesh
  • main.rs: Wires this together to set up a bevy scene

Future

I 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages