Skip to content

Hexagon Tileset 2D don't use regular hexagon #92338

@m21-cerutti

Description

@m21-cerutti

Tested versions

System information

Godot v4.2.2.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 Ti (NVIDIA; 32.0.15.5585) - 11th Gen Intel(R) Core(TM) i7-11700KF @ 3.60GHz (16 Threads)

Issue description

Seems all the grid with hexagon are not regular ones mathematically, since the outline touch the border on two faces.
To illustrate, the difference beetween this one (regular)

Regular_1

and this one (not regular)

NotRegular_1

is subtle, but that means distance on extremity are not the same on the second case (and could lead to wrong AStar ?)

Inside Godot TileSet, we use not regular one :

image

image

Steps to reproduce

  1. Import a tileset with regular hexagon
  2. See difference

Minimal reproduction project (MRP)

Chara_TopDown_Hexagon.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions