Integrating Avoidance Steering

Thanks for the support in advance! It’s been great using and learning through your this project. I’ve been trying to implement steering behaviors, specifically avoidance, referencing Understanding Steering Behaviors. I’ve been having difficulty determining exactly where in your code I need to add the final calculated steering vector. I’ve tried in AIPath’s MovementUpdateInternal method for calculating nextPosition and in AIBase’s FinalizePosition to calculate currentPosition. In both cases, the character begins moving erratically unless I pause and continue frame by frame. I’m not quite sure how to debug this issue. Thanks again!


The local avoidance system in this package behaves very similarly to steering behaviors. So they would probably be integrated in the same way.

This is primarily done in the AIBase.CalculateDeltaToMoveThisFrame method.