Game object stuck when traveling on spherical surface

Hi again!
We’ve been trying to get smooth movement around a spherical navmesh, and our game objects are constantly getting stuck and not being able to travel across the entire navmesh surface.

Once again, any help would be appreciated, we’re stuck :sweat_smile:


I really don’t have enough information to help you here. How is it getting stuck?

The path is being generated properly, the problem that we are having is the lack of auto-orientation. Our game objects are getting stuck because they are not travelling across the sphere properly. Some objects can move more than others based on their spawn position and rotation. We’ve been looking into different methods we can use to achieve proper orientation along the surface. Do you know of any methods yourself?


That description is still extremely vague, I have no idea what to tell you.
With the AIPathAlignedToSurface script what it does is essentially to just shoot a ray downwards and align itself to the normal of the hit collider.

If I may necro this thread; I have units with AIPathAlignedToSurface (RVOSimulator has Arbitrary MovementPlane) & AIDestinationSetter going after targets on the surface of a sphere. The units work as desired but will not cross the equator moving from the N hemisphere to the S or vice versa. The gizmo path is fine, they just tend to sway east-and-west and not progress. If I drag them over the equator, or bring the target into the same hemisphere, they behave as expected.

What am I missing?

@Thompson have you tried it in the example Spherical scene?

Excellent suggestion, will try ASAP and post here.

I only suggest that because it allowed me to find some weird things that were affected by gravity (e.g. my custom AI was on the same layer as the navmesh, etc.). It may not expose the problem but could give a clue if it’s your AI or the navmesh.