I’ve created a root motion controller for my character and my I made the AI move by root motion too. I used the navigation system to get the path points and move the Input horizontal and vertical based on the dot product of the forward and right vector of the character towards the destination point.
The problem I encountered is making the AI avoid each other. I know you need to use the DetourAiController to make them avoid each other so I need to refactor my code, I’m still a beginner to the unreal engine, I’m a unity developer before. My question is how to override the AIController to somehow give me the next move point or the velocity that is gonna be applied to the character so i can covert it to horizontal and vertical values for my root motion controller? In that way I’m using the Ai move of ue4 without creating an entire system from the scratch.
I’ve looked to other people’s code and tutorial for overriding the AIController or the PathFollowingComponent but i can’t seem to wrap my head around it. There is no decent documentation for overriding it. I’ve been stuck for days.
Thanks! I really appreciate it.