softbody and questions

Hello guys,

I'm pretty new to box 2d, i am trying to implement some softbody test. the way i am doing it is connecting a bunch of little circles with distance joint.

i use a chain of fixed length distance joints to connect the points to form a ring, colored in white, and i use soft distance joints to connect the points internally (colored in red)

this does work, but has some problems.

first of all, how should i move this thing left and right?
basically i want the thing roll to the right.

but the softbody is formed by many circles. each circle has its own movement. how should i apply forces or velocities to them?

right now i compute the highest point on that ring and apply force onto it. the ring does roll, but it seems not very stable. because the fixed length distance joints are not stable. they can be stretched, and the whole softbody can be twisted.



I noticed that there were other discussions on this topic in this forum. the ideas tend to implement a special area (volume) preserving joint. I am wondering if that is the best way of implementing softbody?

the other thing is that, if i want the thing stop immediately after i release my keyboard, how should i clear velocities? right now i only know that world->ClearForces() can clear forces, but what about velocities?

thanks

Original thread: https://box2d.org/forum/viewtopic.php?t=6651