AI move along uneven surface

Hello,

Can I make (rotation) orientation of AI seeker normal to the surface that it is standing on? Right now the AI seeker is always upward when walking along uneven surface.

In addition, can the AI walk on a vertical wall?

Cheers,
Shin

Hey,

Adding the face normal as a rotation to an agent isn’t all that difficult, you’ll want to override the updateRotation function. I believe adding your face normal rotation at the end should work just fine.

Yes, you can change the direction of your graph to also apply on walls, though transitioning from one graph to another would require a custom solution.

Hi

In the latest beta you can use the AIPathArbitrarySurface script which aligns the agent to the surface normal. It is intended for spherical worlds.
See https://www.arongranberg.com/astar/documentation/dev_4_3_11_59993326/spherical.html