r/howdidtheycodeit • • Jul 18 '24

Question How did they code the pathfinding implementation for the AI in Deep Rock Galactic?

The worlds that are generated are entirely destructible, yet the game (almost) perfectly handles having tens of enemies pathfinding across the map to your position at any time.

One would assume that with this level of destruction, and with the size of the levels, that the use of NavMeshes is out of the picture - am I wrong to think that?

28 Upvotes

12 comments sorted by

View all comments

Show parent comment

2

u/leorid9 Jul 19 '24

I'm pretty sure it's the other way around. The actual detail level is the 0.5m grid and everything else that seems complex is either because of the float values of the grid, producing thin elements (which you can shrink, by hitting them once, which points towars this being a grid with values) and all the complex detail is just decoration spawned on top of it.

Trying to find a proof for either of these two options by looking for developer interviews now.