[x] Mesh generation was broken if used with an HexLayout with a non zero origin, as the origin offset would be applied twice ( hexagonal_plane + the mesh builders)
[x] In addition to this, if used with bevy the offset would be also applied by hexagon entities transforms
Solution
Added a center_aligned builder method to all mesh builders. this negates the HexLayout offset
Fixed PlaneMeshBuilder::build method which was applying the offset twice
What does it solve
HexLayout
with a non zeroorigin
, as the origin offset would be applied twice (hexagonal_plane
+ the mesh builders)bevy
the offset would be also applied by hexagon entities transformsSolution
center_aligned
builder method to all mesh builders. this negates theHexLayout
offsetPlaneMeshBuilder::build
method which was applying the offset twice