Hello there.
I'm using soft distance joints to model a soft body - a set of circular masses are interconnected using distance joints. Quite common thing I guess ;o)
The body behaves quite well if collision arent' violent, otherwise the masses find a new equilibrium and my soft body results distorted.
My first though was to strengten te joints - I set frequencyHz = 0 and dampingRatio = 0 for all the joints.
They now seem stiffer, but still deformable - opposed to my expectations.
Can a distance joint be configured to be "undeformable"? I guess the answer is "no" but I'm not sure.
I guess it is like the "confined" sample in the testbed: circles shouldn't permeate (overlap? I mean: "impenetrability"... ok, I do apologize for my English!!!) but they do. Box2d does the best it can to iterate an equilibrium.
Is that true?
After that: next experiment I'll try to use rectangles (wide and short... I mean: w = 1, h = 0.05 for instance) connected using revolute joints in order to build a kind of "track" (I mean: tanks moce onto tracks).
Hints?
Thanks for your time.
I'm using soft distance joints to model a soft body - a set of circular masses are interconnected using distance joints. Quite common thing I guess ;o)
The body behaves quite well if collision arent' violent, otherwise the masses find a new equilibrium and my soft body results distorted.
My first though was to strengten te joints - I set frequencyHz = 0 and dampingRatio = 0 for all the joints.
They now seem stiffer, but still deformable - opposed to my expectations.
Can a distance joint be configured to be "undeformable"? I guess the answer is "no" but I'm not sure.
I guess it is like the "confined" sample in the testbed: circles shouldn't permeate (overlap? I mean: "impenetrability"... ok, I do apologize for my English!!!) but they do. Box2d does the best it can to iterate an equilibrium.
Is that true?
After that: next experiment I'll try to use rectangles (wide and short... I mean: w = 1, h = 0.05 for instance) connected using revolute joints in order to build a kind of "track" (I mean: tanks moce onto tracks).
Hints?
Thanks for your time.