Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One of the most used in industry approaches to pathfinding in things like RTSes is what's called a flow field. It's a bit like a precalculated pathfinding map.

These are some of the most interesting for what you can accomplish (pathfinding a ton of units at once!).

A great resource for that is this blog:

https://howtorts.github.io/

It has working javascript examples and other related topics like flocking behavior.



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: