Rope Physics made in 2 hours Tips: - Lower Delay & Lower damping is better for Longer Ropes. (0.1 damp & 1.2 delay is cool) - anything below 25 looks sort of realistic on default settings. I know why higher lengths don't look as real... I'll fix it later. (That means never) One reason is because there is no limit to the distance that each node has to one another. Instead of being stretchy, the rope would be bouncy if I add a limit. Another is that the earlier nodes don't interact with old ones. for example, node 5 will follow node 4, but wont affect node 6 at all. This makes it straightened halfway when you stop.
I made this with velocity, the formula for distance, (Abs of |Obj1 x,y - Obj2 x,y|), cos sin & tan, and Scratch's lists. I plan to make more physics in the future. Slope is a little buggy, I'm still learning cos sin & tan, but not in school. if anyone could give me a formula on how to clip the rope's nodes out of the triangle, that would be great. The flat side of the platform was easy, because it's flat. Slope angle (tan): 117 current formula: change y by abs of tan of 117 if touching slope change x by abs of tan of 117 divided by 2 if touching slope if not touching slope, change yvelocity by gravity if touching slope, set velocities to 0. any help is appreaciated. Oh, and any formula to smooth out the rope? Set delay to 2.5, and length to 100, damping 0.3, and gravity 0. you'll see what I mean when you wave the snake round. It's not smooth. https://scratch.mit.edu/projects/936910908/ @Griffpatch made a smoothing script long ago. I will learn this "Bezier" method. This sort of looks like kimi no nawa.