Save the headache and make hexagon based games FASTER with this bundle. It contains many useful hexagon operations and calculations that are tedious to implement.
Includes a GENERIC grid and map implementation that allows for great data structure.
The main features are:
- An extensive hexagon definition that has:
- Vector operations (addition, subtraction)
- Scalar operations (multiplication, division) with rounding/flooring options
- Distance calculation between two hexagons
- Linear interpolation between two hexagons
- Custom hexagon editor that allow for easier development
- 2D geometry calculations like:
- Center, corner and side positions
- 2D point to hexagon
- Angle and direction
- Hexagon rotation
- 3D geometry
- All 2D geometry calculations projected on a 3D plane
- 3D point to hexagon
- Mesh generation
- Hexagon relations
- Neighbors
- Diagonals
- Ring
- Sprial
- Movement range
- Line calculation between two hexagons
- Genertic HexagonGrid<T> data structure for storing values on a hexagonal grid
- Genertic HexagonMap<T> data structure for storing values on an infinite map organized into generated chunks
- Binary serialization for the hexagon
- Various debug scene functions
Included demos:
- Single hexagon demo - shows the custom editor + hexagon geometry
- Single mesh demo - shows how a mesh with a texture can be created from a hexagon
- Hexagon grid demo - shows an interactive generic grid
- Hexagon map demo - shows an interactive generic map
- Hexagon grid mesh demo - shows how a grid can be used to generate a custom world based on the grid values
- Hexagon map mesh demo - shows how a map can be used to generate an infinite procedural custom world with a player moving on it
- Hexagon relations demo - shows how various hexagon relations like neighbors, diagonals, spiral and movement range
All features are ready to be used!