Quoted By:
Ina fangame progress:
Okay, so, I had to rewrite my "soulsborne-like targeting system" from the ground up when I discovered "spiraling" bug. The more a character spin-strafed around a target, the more they would "spiral" away or towards them. (I literally had to reteach myself trigonometry to rediscover the Law of Cosines and other nonsense, I can't believe my math teacher was right this would be useful one day.)
Now, it still does spiral, but that's because of a floating-point error (it will continuously accumulate errors and gradually add up, but it takes a very long time), and I can't do anything about that. What's important is it is no longer noticeable in normal gameplay.
The other important thing is I generalized the formula, so I can apply it to ALL characters, and have complex behavior for future enemies.