First off, excellent work, readable code, great performance – and great book recommendation “AI Game Programming Wisdom 4”. I’m about halfway through already. I checked the forum as much as possible, tried several things within the code, and read most of the code in the package but could not find a way to resolve my issue.
Here is my use-case, simplified:
- Humanoid movement
- Recast graph for primary movement
- Point graph for node links
It all works when I use it with the RichAI component, including the off-mesh links. The issue is that I need to write my own movement script. I read your implementation, line by line, within RichAI and I have a pretty strong understanding of how it works (even if I can’t say I could have written it from scratch).
My issue is that I need the Funnel modifier but also I need to detect when the agent arrives at an off-mesh link so I can traverse it (which involves a usually-impossible Y-axis shift and playing an animation). Now, it looks like you’re not using your typical Funnel implementation within Rich AI and are instead using custom code to do the same thing.
The reason I don’t want to just use the RichPath component you’ve setup to do the custom modifier is that I have multiple agent types (and movement scripts) and I’m trying to keep things isolated architecturally on their correct layers. So I’d like to keep myself isolated, for pathfinding, to the Seeker component and the path modifiers.
- Why? if there was a limitation within the Funnel modifier preventing Rich AI from using it, why not just update the modifier implementation instead of writing a new Funnel modifier?
- Is there any way to detect when arriving at a mesh link while using the Funnel modifier?
I suspect the answer is that you can’t do it right now. If that’s the case I’d like to request a recommendation for a path forward and/or if it’s possible to add this functionality.
Thanks for your time,