11
submitted 1 year ago by teahands@mastodon.gamedev.place to c/gamedev

Hoping for some advice on AI pathfinding terminology

Basically I have a town made of individual hex shaped tiles with buildings on them. Each tile will have footpaths too, and my little people will hopefully wander around the paths, travelling to other tiles via their path connections.

I'm fine with learning this stuff but just not sure exactly what terms to search for to get started!

Should I be looking up specific #Godot features for finding routes? Algorithms? Help!

@gamedev #GameDev

you are viewing a single comment's thread
view the rest of the comments
[-] bluestarultor@tech.lgbt 1 points 1 year ago* (last edited 1 year ago)

@teahands @gamedev A* ("A star") might be a friendly starting point. It's generally intended for square grids, but a little algebra to get the right distance for the angles might make it possible to extend to hexagons. Even if you don't end up using any part of it, just understanding it might help for fundamentals.

[-] teahands@mastodon.gamedev.place 2 points 1 year ago

@bluestarultor @gamedev Fundamentals is absolutely what I'm missing here so thank you very much. Baby steps, and all that!

this post was submitted on 08 Jul 2023
11 points (100.0% liked)

GameDev

2766 readers
1 users here now

A community about game development.

Rules:

More rules might follow if they become necessary; general rule is don't be a pain in the butt. Have fun! ♥

GameDev Telegram chat.

founded 1 year ago
MODERATORS