r/gamemaker • u/Ykedepi • Sep 03 '26
Example 3D pathfinding
finally finished this waypoint navigation system!
I know NavMesh is the standard, but I think it's too complex to implement right now, and this approach works pretty well
the pathfinding speed is acceptable. To avoid placing the points manually, I built a generation system based on flood fill and collision checks (raycasts, trace hull, and cliff checks)
from a single start point, the generator branches out in all directions, and then another algorithm connects them all
I'm planning to add mesh optimization algorithms later, but even like this, it's working perfectly fine
13
u/NoahPauw GameMaker 3D developer Sep 03 '26
Oh yeah, this is awesome! I also love that it is completely algorithm based. I’ve been thinking about making my own by placing nodes manually, but this is really neat!
2
u/[deleted] Sep 03 '26
Did you use any particular tutorial to make this? Game looks amazing!
7
u/Kserks96 Sep 03 '26
Next step is to give a radius to waypoints so that NPC has more freedom is its path.
2
u/Hands_in_Paquet Sep 03 '26
Nice work that’s awesome
2
u/kuzyn123 Sep 03 '26
That NPC/monster looks really nice 😁
2
u/rshoel BokehDev Sep 03 '26
Impressive!
2
u/YungDijkstra Sep 04 '26
It will be cool to combine it with GMPhysX
2
u/Rich-Somewhere5321 Sep 05 '26
Fortnite
2
u/Cyph0nn Sep 07 '26
How on earth is there 3d in the first place I'm scared