AssertionException when using a Link2 and RandomPath.Constuct

  • A* version: [5.4.6]
  • Unity version: [6000.3.9f1 & 6000.5.5f1]

I have 2 (groups of 6 for agent sizes) recast graphs connected via a Link2

The agents use the link, and will successfully move back and forth via the teleport setup in the docs (cant post links), but when they do, they raise an AssertionException.

This is the code I am using to create the path

I originally came across this issue in the 6.5 project, and when recreating the identical scene in 6.3, I am still having the same issue!

If I set a target transform in AIDestinationSetter, they traverse the link without a warning. This leads me to believe the issue is with the way I am generating the path across in my wandering function!

I would love some advice as to what I can do to avoid this error!

Thank you for your time!

Which movement script are you using, if any?

I am using the Follower Entity (2D, 3D)!

My Follower is also traversing a gap with an off mesh link/random path, but im not seeing the assertionexception aside from once and I’m not able to find out what caused that. Are you able to share a repro project or steps to set one up?

I can try to work on something, but A* is not the only paid package so id have to try and strip a bunch out so you can open it.

In the meantime, do you see anything wrong / different with my generation code? Something I could try there?

Personally I’m not seeing much. The only thing I’d think to try would be to take this out of a coroutine just to test and make sure that’s not part of the issue on your end. Or try taking out lines one by one so long as you can traverse the link, eliminating things 1 by 1 to see what may be causing it.

But that’s just general troubleshooting really.