Problem with terrain and Agent alignement

Hello ! I’m experiencing an issue with recast graph and terrain. On flat terrain everything works great, but as soon as i add a little bit of relief, when the agent is walking on it, i guess he tries to align with the surface, and he often do this:

He can be 90° on x axis, this is related with the surface normal i guess… do you have any idea of why he is reacting like that ?
Thank you in advance !

Hi

It looks like you might have a rigidbody attached to the agent. Try to remove the rigidbody (it is usually not required) or at least lock the rotation of it.

Hi thank you !
I did not have any rigidbody, but i solved this by disabling UpdateRotation of my RichAI, and setting it manually via script/