Soft Body/Rope ETENSION

this will work great for my game but is there a way to make it pull you in and if you want to swing you need to get momentum and it be more realistic

1 Like

Can you clarify a little more what you’re talking about, @coppercode?
Are you talking about that demo I made, or the whole extension’s physics in general?

I haven’t had a chance to look at it again yet. I’ll be tinkering with it. Maybe I’ll come up with something in the next week.

Maybe it would work better with Inverse kinematic chains instead. We would lose the springiness with IK chains, but I think the swing would look nicer.

I did create this new topic which will include EVERYTHING I do with procedural animation, including games.
I’ll keep talking about the fixed swinging in this topic though.

i mean when you move with the extension you don’t like hang and get speed you just move and the rope does not stop you and you don’t need momentum i was just wondering if it could be more realistic that’s all but amazing job with the extensions your amazing and i look up to you i want to get as good as you one day

1 Like

Ok. So the reason it’s not swinging the way you think (not keeping its momentum) is because the damping is too strong. Here’s an example,

The block at the end of the “on start” block makes the damping softer.

1 Like

coooool

but i mean more like proper rope physics

Ok. I just now added two new blocks that should help with making ropes that swing better. What I would do is look at the now four blocks for changing the dampening, spring stiffness, max velocity, and max stretch, and just go through trial and error until you find the rope you’re looking for.

Hopefully this helped!

I’m going to make a new version of that demo soon.

2 Likes

ok that will help so much thank you

I’m having a hard time even with these new blocks to make a new demo but I was looking at my extensions and other professional games with rope physics and I added yet more blocks for query and positioning:


And I added a new Creation block that might come in handy for @BlueYoshi507’s idea:

I honestly am having a hard time making a demo for proper rope physics. I might have an easier time creating something if I have a game concept in mind. If any of you would like to suggest a game idea for the demo, that would be great! I would love it if others wanted to tackle this, too!

  • I’ll try making a demo
0 voters
2 Likes

It might just be worth it to make the rope physics tighter with a different extension of mine, like the ragdoll extension and line canvas extension.

Thanks man! :+1:

1 Like

Hey @BLADEr is the extension available now? Cuz I tried to add it to my project, but I can’t find the new blocks

Nope ¯_(ツ)_/¯

Should be good now. I forgot to commit the changes and that’s my bad. Thanks for catching that!

1 Like

Also, let me know what you guys think about the new blocks.

wag
Nope, actually nothing different from before.

2 Likes

Along with committing your changes to the repo, you might need to create a new release from the MakeCode interface (if you haven’t done so since your most recent commit).

1 Like

Ok. Let me make a new release. I’m so sorry about this!

I added new query blocks, a new block for positioning the softbody between two points, and a new creation block for cutting the softbodies.

1 Like

How do I make that sprites can directly interact with soft bodies? Like, if sprite player overlaps with softbody thing?

Each segment in the softbody is a sprite, so you could make a loop and set every segment of a softbody to a different kind, like “Segment” instead of kind “Player”. Or you could just add all the sprites to an array. Keep in mind though the sprite will only overlap if the segment has an image (in my case).

Another thing you could do is check to overlap the actual canvas the given softbody is drawing on, for that is also a sprite.

Can u make a project showing an example pls?