how to make Ai flying over gap

Hi,

I’m trying to make an Ai character “fly” over a gap, the character will be a moth.
Heres the working prints at the min.
2024-11-19 13-39-43.mkv (3.1 MB)

but i want it to work when their is gaps like this
2024-11-19 13-40-02.mkv (4.6 MB)

I pretty much want the moth to head straight for the light. any help?