Strat Souls: WIP 11

0 days 15 hours 40 minutes 13 seconds left!

 

So I got obstacle avoidance working, with thanks to some pseudocode explanations on boids here.

Units will still get stuck occasionally however, as there’s no escaping the need for pathfinding.

Now I’m wondering if my old code for influence maps will help with this. Although influence maps are used for tactical reasoning, they are very similar to potential fields (which is the one used as an alternative or supplement to traditional pathfinding, i.e. A*), so I think I can use the same code.

I shared my simple test implementation of Influence Maps in Unity. You guys can check out the source code here. Here’s my forum thread on the Unity forums.

 

I think you need a combination of both obstacle avoidance and pathfinding to get good AI movement.

Anyway, I would consider this tolerable for now, so I’ll move on to making a few more units.

Tags: progress, screenshot, Strat Souls, unity, unity3d