June 2021
Posted 3 years ago
AI is something I didn't want to leave as an after-thought, so I'm keen to prove to ourselves that we can have legit decent, extendable AI in addon code without falling back on any of the built in AI in the engine.

Making the navigation mesh feasible from c# is going to be a big part of that, so I started worked on that earlier this month in an addon called ai-lab.
attribute 'contenteditable' not allowedattribute 'blocktype' not allowed
This game functions more like an app where I can try a bunch of different experimental things. Above you can see it building the optimized paths for these npcs using the navmesh from the map.

attribute 'contenteditable' not allowedattribute 'blocktype' not allowed
We can see the NPCs successfully navigate around the map. It's not always perfect, especially when there's other NPCs around, but it's good enough to say that it works.

attribute 'contenteditable' not allowedattribute 'blocktype' not allowedattribute 'title' not allowed
This is something I like to play around with, and I'm sure there's going to be people in the community that make better AI with it than I ever could. The functionality is there.