It looks like this question has been asked a bunch of times. But none of the answers really answer my question. I want to make a game in which the player can do spiderman-like web swinging. To elaborate, spiderman attaches his web to some object and then, using his web as a rope, swings from that point. In this case, raycast to find where the player is aiming at, place an anchor there and start swinging from it. Simple enough, right? Yet I can't for the life of me figure it out.
![alt text][1]
I've been struggling with this for the larger part of my night. Trying mostly with joints, even though I have little experience with them. I tried configurable joint linear limit, which really seemed to be it for a while, but it anchors the player to his own position and not the anchor. I tried changing the anchor settings of the joint, but that makes it all glitchy and weird. I tried placing a cylinder between the player and the anchor and attaching it to both but that was just a big mess from the start.
What's the best way to do this sort of thing? I feel like there's a stupid simple method I just haven't thought of yet.
[1]: /storage/temp/55864-swinging-screenshot.png
↧