hi so i have ran into a problem when trying to make latching points for grappling in my game (green anchors)
basically if press a grapple button you shoot a hook based on where you hold WASD, but if you're within the gray circle you will automatically shoot towards the anchor. since these anchors would be littered everywhere i tried added another one to see how it would behave and if you were within the gray circle on the right you'll still shoot towards the original one on the left
in my code i basically have it if you are in the gray circle and you press grapple button you point direction from player origin to obj anchor and shoot, since they will have different x and y values how do i make it so that it gets values from the one i shoot or closest or something, one thing that's in my mind that could possibly solve this is using 'other.' but i have no clue how