How to inject custom obstacles

I have just started using the A* project and it’s meeting my needs well so far. The question I have is how can I use custom obstacles that should be avoided. The game I am currently trying to make is similar to Katamari Damacy where players can only go after items of similar size or smaller, but if they come into contact with a larger item they will get crushed under it’s weight if they collect it. Because of the multiple AI bots, I cannot give these obstacles a tag, but I have to somehow specify that each object can either be picked up or avoided.

Any help would be greatly appreciated.


It is possible to inject custom code into the pathfinding system for this. See

1 Like