Hello, everyone! I’m fairly new to programming and am looking to implement pathfinding and other features based around the hex-tile map I’ve just started setting up (for a turn-based RPG like Final Fantasy Tactics). In the past, I’ve generated the tiles via code, but this time, I decided to hand-design the map (and have the hexes all sorted under one empty game object), so I’ll need a solution that can be applied over this.
Is there any clear way to take each of the existing hexes, find its center, and assign all of the centers as nodes to some sort of mesh to use for pathfinding (where players can move a certain number of spaces per turn)?
Long-term, I am seeking a solution where I can also easily define attributes for the tiles such as their type (sand, grass, swamp …), whether they are passable, height, combat/other modifiers, chance of spawning loot, and the like. I am imagining that there is a fairly straightforward way to approach this, but I am just entirely unsure where to start, with very little knowledge of setting up nodes or meshes or anything.
If anyone with more experience can point me towards a solution (even if it’s just tutorials on YouTube or concepts to explore), that would be greatly appreciated.