Releases: Zehir/godot-hexagon-tile-map-layer
Releases · Zehir/godot-hexagon-tile-map-layer
v2.0.0
Breaking changes
- Split the static methods inside a HexagonTileMap class
- Renammed the
cube_rect
tocube_rect_corners
Added
- New method
cube_rect
to get all cells inside the rect.
Updated
- Changed the type of
axis
param fromint
toVector3i.Axis
. There is no difference in the runtime.- cube_reflect(position: Vector3i, axis: Vector3i.Axis) -> Vector3i
- cube_reflect_from(position: Vector3i, from: Vector3i, axis: Vector3i.Axis) -> Vector3i
- cube_rect(center: Vector3i, corner: Vector3i, axis: Vector3i.Axis = Vector3i.Axis.AXIS_Y) -> Array[Vector3i]
- cube_rect_corners(center: Vector3i, corner: Vector3i, axis: Vector3i.Axis = Vector3i.Axis.AXIS_Y) -> Array[Vector3i]
Fixed
- Fix return type of
cube_spiral
to beArray[Vector3i]
v1.1.0
Breaking changes
- Require Godot 4.4 or later
Added
- Axis dependant variables that get updated on ready
- cube_direction_vectors: Dictionary[TileSet.CellNeighbor, Vector3i]
- cube_side_neighbor_directions: Array[TileSet.CellNeighbor]
- cube_corner_neighbor_directions: Array[TileSet.CellNeighbor]
- Methods to get cells position depending of local position
- get_closest_cells_from_local(local: Vector2, count: int = 1) -> Array[Vector3i]
- get_closest_cell_from_local(local: Vector2) -> Vector3i
- get_closest_cells_from_mouse(count: int = 1) -> Array[Vector3i]
- get_closest_cell_from_mouse() -> Vector3i
Updated
- Reduce axis comparaison for static methods by caching neighbor_directions and direction_vectors vars