I new to Godot and I am working on a grappling hook for my 2d platformer. I've looked up tutorials for said grappling hook but only found ones in which the hook followed the direction of the mouse. I'd like to make one which finds the nearest point the player can grapple to and auto aims the hook toward that point.
2D Platformer godot automatic aim grapling hook