Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactoring]: Internal Hex Grid Coordinate Change #4930

Open
ColdAnkles opened this issue Sep 17, 2024 · 0 comments
Open

[Refactoring]: Internal Hex Grid Coordinate Change #4930

ColdAnkles opened this issue Sep 17, 2024 · 0 comments

Comments

@ColdAnkles
Copy link
Contributor

Describe the problem

Discussion in #4886 revealed some distaste for the offset coordinate system used by MapTool for hex grids. (off-q, or off-r)

The improvement you'd like to see

It is suggested to move to cubic coordinates instead of offset.

Expected Benefits

This should simplify the java side coordinate math, since no offset maths would be required any longer, and vectors would just work.
Display coordinates could then be implemented for graphs, allowing for options such as the existing offset system, cubic, or axial.
Also allowing for y-up instead of the current y-down.

Additional Context

Coordinate vector math would also no longer need to care about handling offsets wherever it is - entities dealing with coordinates don't care about the grid and what offset it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant