You could also decide to use a FlxVector instead of a Vector2, in that case you'll need to use the method .subtract() instead of just doing a subtraction operation when creating the vector, as the FlxVector class doesn't overload the operators.
You also won't need to convert radians to degrees as FlxVector measure their angle in degrees already in FlxVector.degrees.
Last thing to note:
I'm sure the code I've written here will need tweaking for your usecase, treat it as just a starting point, reply if you need more pointers.
Hey @Nickccnt that's interesting, you're the second person to have this issue. I have a feeling maybe HaxeFlixel is an unpopular open-source game engine and therefore isn't recognised by the Windows antivirus software.
Would it be possible to share a screenshot of the virus warning and let us know where you're downloading FNF from? Also, what anti-virus software are you using?