How allow enemy AI to chase you on uneven terrain?

Working on some AI for my game and ran into a bug. When the enemy is met with an incline or decline slope he just runs in place.

I can increase his hip height but then it looks weird because he’s floating off the ground.

Any idea how to fix this?

I’m currently using Moveto, but I’ve tried pathfinding as well. Same result.

It’s a skinned mesh so maybe that contributes to the issue?

2 Likes

You can’t make your AI move to slope that are very sharp or very steep and pathfindingservice is possible to do on very uneven terrain but it wont reach its designated target. Maybe try making the terrain more navigable or easier to be navigated by the ai or you could either place specific positions on where the ai should jump at to make it possible for the ai to get across the uneven terrain or make the ai ragdoll itself, letting your enemy ai vulnerable to physics and let it fall on its own. This could help you or If none of I said works then the final option is just to Increase his hip height.

Can you provide relevant code, a video of what they’re doing and any error or warning you may be getting?