I’m attempting to spin the hook around the bar and i thought that if i would use vector force and make the attachment always point straight i could get a result where there would be a constant force that pushes the hook enough so that it goes around but i couldnt get it to work properly so far.
https://gyazo.com/fa07ee1eaf0c102b4da9e845d15894bc
Well, I cannot do much help regarding the coding portion, but what I can help with is regarding the attachment of the grappling hook wrapping around.
Instead of actually using forces I suggest to detect when the grapple is attached and then basically force it to stay around that position.
Another pretty much working solution (doesn’t look that cool) is to increase the body velocity’s force at the last piece of the rope (I already apply some force to prevent it from jumping up since it for some reason did that before), that will let the hook slide back onto the bar and decently firmly attach itself to it, again not as cool as seeing it wrap around. Another thing is that I don’t quite want to force events like making the hook fully stop if it touches the bar and then make it wrap around with the usage of scripts, the whole point is that the hook is fully physics based, so a bad throw can lead to devastating results. Thanks for the advice.
Then I would suggest for you to make the arms of the grapple longer (make these extentions invisible).
This will allow it to attach better, while still keeping a cleaner model.