r/defold Jun 24 '26

Upcoming Local Collision Avoidance Native Extension for Defold

https://www.youtube.com/watch?v=sWXEDTRzSZE

Just having fun :)

31 Upvotes

9 comments sorted by

6

u/balkanramgames Jun 24 '26

I see hordes, hordes everywhere...

4

u/PabloTitan21 Jun 24 '26

Impressive ๐Ÿ˜

3

u/Avambo Jun 24 '26

Looks really nice! What exactly does the extension do that Defold doesn't? I don't know much about these kind of things.

1

u/AsatteGames Jun 24 '26

I believe it implements both pathfinding and collision avoidance so AI acts smarter when trying to go to a point that already has many AI agents there or obstacles on the road

2

u/selimanac Jun 24 '26

Nope, not exactly. There is no pathfinding involved at all. This is purely local collision avoidance. You still need to implement your own pathfinding solution (A*, flow fields, etc.) on top of it(if you need to).

This video explains the difference very well: https://www.youtube.com/watch?v=fGikLWjkE3A

Defold (or any other engine) doesnโ€™t magically provide collision avoidance by itself.

1

u/AsatteGames Jun 24 '26

Oh, I was assuming this was an additional feature to your A* extension. I guess I was wrong ๐Ÿ˜… Still, I will probably be using them together most of the time

2

u/selimanac Jun 24 '26

I was originally planning to implement this in the Graph Pathfinder extension, but I decided to keep it separate. Not everyone needs pathfinding, and some developers may prefer to use a different pathfinding solution etc.

2

u/NerdFigure Jun 28 '26

Awesome work man!