Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Rope with Hook Physics

Author
Message
brunuu
5
Years of Service
User Offline
Joined: 4th Jun 2018
Location:
Posted: 5th Mar 2021 03:59 Edited at: 5th Mar 2021 04:01
For a few days I have been trying to make a rope system
at first I thought it was going to be easy, I could simply join several sprites in a row with a distance or weld joint, but apparently this is far from enough, i think it can be a little challenging and hard to get the result i want

I did a little research on the forum to see if anyone ever tried to do something like this, and it looks like there isn’t


this is the result I wanted
https://www.youtube.com/watch?v=rxNIsHSbMOg
https://youtu.be/YNhjAPZNzxI?t=39 (after 39 seconds)

this is what i have
https://streamable.com/kezh6x



I was currently following this tutorial.
https://www.emanueleferonato.com/2012/03/19/basic-box2d-rope-chain-2-1a-version/

I also read this one, which comes from the second video
http://antonior-software.blogspot.com/2016/12/box2d-ninja-rope.html


what do you think i should do better to get the desired effect?
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 5th Mar 2021 04:58 Edited at: 5th Mar 2021 04:59
SetJointDamping()

brunuu
5
Years of Service
User Offline
Joined: 4th Jun 2018
Location:
Posted: 5th Mar 2021 13:57
adding damping definitely produces a better effect

but the biggest problem is making the rope look like an entire foldable line, just like in the videos
my idea was to make small rectangles and join them together, but it doesn't seem to work very well
brunuu
5
Years of Service
User Offline
Joined: 4th Jun 2018
Location:
Posted: 6th Mar 2021 15:48


this still happens and i have an idea why

brunuu
5
Years of Service
User Offline
Joined: 4th Jun 2018
Location:
Posted: 6th Mar 2021 19:13
https://streamable.com/yq957m

I already have some improvements

Login to post a reply

Server time is: 2024-03-28 13:15:21
Your offset time is: 2024-03-28 13:15:21