Cooperative Pathfinding Update?


#21

Sorry I’m trying to not be a jerk here… am I doing something wrong? Is anyone getting notified of these? @aron_granberg @richieturner @Fuzzy

Thx


#22

@schmoey Well I am :slight_smile:
I hope @aron_granberg will get this feature to the stable release, it’s so cool and useful and really sets this pathfinding apart from the others.


#23

Ha ok cool.

So question… did it actually work for you? Do the agents move? Or just the gizmos?


#24

Sorry.
I will take a look at this as soon as I can.
I don’t believe it is the Teleport method though. If that was the problem it would be a compile error, but you aren’t seeing that, right?


#25

All good, I just wasn’t sure whether the forum was working or not… but yes obviously it would be good to see this functional!

I haven’t gone back to look at it since my original post, so I’m probably wrong. No, no compile errors, just the gizmos are moving in the way you would expect the agents to, but the agents do not move at all.


#26

@schmoey Yeah same with me, no compile errors. Just gizmos and pink bars it’s weird. No agents moving. And textures seem to be missing although I imported everything. Everything is pink


#27

Hah. I think I found the problem…

Sometimes I use the AstarRelease compiler directive to strip out debug code or beta code from the final release. Here it seems I had mistakenly stripped out a bit too much code. I have uploaded a new beta version. The materials might still be missing though, I didn’t check why that was the case.


#28

Oh yeah that’ll do it alright! Cool thanks it all works now, gonna have a play around with it and see what I can do. Thanks again!

Not fussed about any missing materials :slight_smile:


#29

Yeah, I got it working too agent are still all pink but no big deal. Damn this is unbelievably cool!
@aron_granberg do you think it is stable enough to be used for a released game?
And are there any tutorials on how to set it up?


#30

@sami14321
There are some kinks still. Sometimes agents will pass through each other, I haven’t really figured out why that is happening. Of course, this might be acceptable depending on the game.

There are currently no tutorials, but it’s pretty much that you have to add the CooperativeContext component to the same component as the A* component, and then add the CooperativeAI movement script to the agents (it works like the other agents, so you set the destination property or add a AIDestinationSetter component).


#31

@aron_granberg That’s awesome. Just one more question, does this work with recast graph?


#32

@sami14321 No, it does not. In fact there is a whole bunch of restrictions, take a look at the bottom of https://arongranberg.com/2015/06/cooperative-pathfinding-experiments/