Air Pathfinding Question

I’m trying to figure out a way for pathfinding to track in the air, for a humanoid, I was thinking I would need to make a ray and have the humanoid go around the ray instead, but I’m still clueless. I was wondering if anyone could give me some advice or something to research.