How do I stop my projectile from shooting upwards?

Hello, I’m trying to make a projectile shoot from the reference point, but the projectile always arcs upward instead of going straight. I’ve tried my best to demonstrate the problem on this screenshot, and I also attached the code for it. Any solutions or ideas on how to fix it would be much appreciated.


349737-

This

349753-screenshot-2.jpg

is taking the unit vector from the helicopter to the missile. You need the unit vector from the helicopter to the target.

I still kinda confused, can you please post an example of what to do?