Question about AI behaviour

I have got a trouble with my ai movement. Everything okay but one shortcoming: my ai character doesn’t affect with landscape normally. When he goes on a hill, he doesn’t affect rotation of this climbing. He goes like vertical stick but I want “teach” him to affect hills and holes. If you understand me, it is very good :). So, how can I help him with this problem?)

Hello!

That is not an issue of AI. That is an issue of orientation and animation. Until you understand why they are different, I suggest you keep your game on flat ground and use stairs. So many people try to do too much too soon. They fail miserably and give up UE4 forever.

Go slow. Understand what you are using. Then do something that will amaze everyone.

Beautiful answer! Thanks a lot for advice! I won’t give up! I think, I know how to do that: I need to trace line by Z axis and take rotation from impact normal. Right?

There you go! That’s half of the job. Then you need to modify your animations with “IK” – Inverse Kinematics. That will get the feet to touch the ground even though it is uneven. Good luck and don’t let yourself get discouraged – UE4 can get frustrating at times, even for the best devs.

Thanks a lot!! I’m not the best developer, so ue4 can’t get me frustrating :slight_smile: (I hope, he can’t…)