On my project I’ve encountered a pretty weird bug:
- RichAI agent is running along the wall
- By game logic AI should stop and look at player which is on the other side of the wall:
richAI.SetPath(null);
transform.rotation = GetLookRotation(target);
- Agent rotates, but because of low RichAI.Acceleration param the AI doesn’t stop immediately, and goes into wall - falling of the map
I have both RichAI.UpdatePosition and UpdateRotation set to True
Also I tried to call
richAI.Rotation = GetLookRotation(target);
but it’s completly the same thing with UpdateRotation turned on
Maybe it’s because I disable EnableRotation, but it will prevent me to rotate agent freely in the direction I need
On the video below AI rotates towards me when it gets debug damage. Accelaration is 0.5 just for example, in actual game it’s higher and there is more chance that agent stops somewhere between graph wall and actual wall