View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0.1
- Last updated
- First released
- Unity version
- 6000.3.9 or later
- Package size
- 367 KB
- Files
- 60
- Favorites
- 11
- Views in the past week
- 17
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Keywords
Just Hexagons
- Price drop
A bundle full of useful scripts for working with hexagons in every way. From basic positioning to infinite map generation.
Discount -100%
Previous price
$4.99
Price Free
Get it free on Asset Store (opens in new tab)
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 7
Just Hexagons screenshot 1
About this asset
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!
From the publisher's Asset Store listing.
Technical details
CORE FEATURES
- Immutable Hexagon Definition
- Q + R + S = 0
- Addition (Hexagon + Hexagon)
- Subtraction (Hexagon - Hexagon)
- Multiplicaiton (Hexagon * scalar)
- Division (Hexagon / scalar)
- Distance (Hexagon and Hexagon)
- Linear interpolation (Hexagon and Hexagon)
- EditableHexagon for the Editor
- Vector like UI
- Auto-corrected Q, R, S values
- Implicit convertions to a Hexagon
- 2D geometry
- Center position
- Corner position
- Side position
- 2D position to a hexagon
- Hexagon direction
- Clockwise rotation
- 3D geometry
- Center position on a 3D plane
- Corner position on a 3D plane
- Side position on a 3D plane
- 3D position to a hexagon
- Hexagon direction
- Single face mesh generation
- Prism sides mesh generation
- Navigation
- Hexagon Line between two hexagons
- Neighbors
- Diagonals
- Ring
- Spiral
- Movement range
- Grid
- Indexer
- Generic value
- Set and Get
- Tile iteration
- Map
- Chunk indexer
- Generic chunk
- Generic value
- Infinite generation
- Chunk position to world position
- Chunk iteration
- Tile iteration
- Debug
- Draw hexagon to the scene
Compatibility
| Unity version | Built-in | URP | HDRP |
|---|---|---|---|
| 6000.3.9f1 | Compatible | Compatible | Compatible |
Only URP support in the demo materials. No conflict with the package itself.
As listed on the Asset Store.