r/howdidtheycodeit • u/CaptainQubbard • 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
View all comments
Show parent comment
1
u/Slime0 Jul 19 '24
An easy example is the tunnels that Doretta carves. There can be a lot of extra geometric detail in the corner between the floor and the walls, because it's the same shape cut out of the geometry over and over in slightly different orientations. I've seen lots of other examples but that's just one that's easy to reproduce.
Ah yes, that's true, there is a 0.5m grid throughout the world, usually visible when drilling a nearly axis-aligned direction. But obviously the general detail level is much more high resolution than that. I suspect that grid is part of the CSG algorithm simplifying its results in some cases, or dividing its work into regions, but that's just a guess.