Vehicles sliding off pathfinding

Godot Version

4.4.1

Question

I’m looking for suggestions as to what’s causing the cars in my game to slide off path when they aren’t driving straight.
The cars use a VehicleBody3D. They’re provided a navigation point to head towards using a NavigationAgent3D on a pre-baked navmesh with a* pathfinding. I’ve enabled pathfinding debug and played around with various settings for the vehicles, wheels, script, navigationagent3d’s and navigationregions.

When the cars aren’t driving straight - as seen in the video. They tend to drift off course. The brakes are not being applied and their engine force is running to the maximum value I’ve allowed them (but they are moving slower than the cars going straight for some reason). They weirdly slide for a while before they sort of “snap” back onto the path. They tend to frequently drift back off course again.

I can’t figure out why the cars are sliding off their path. I’ve tried many things to correct it such as

  • heavily stripped back my script to the basics
  • Modified engine_force values, suspension, wheel friction
  • Removed collision boxes
  • Changed path postprocessing, simplification, avoidance enable/disable etc
  • Split nav-regions into smaller/larger areas, changed agent dimensions, partition types etc.

I uploaded a video of their behaviour below - looking for any input or suggestions…

Cars Sliding