Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The rope is shaking
#2
(19-05-2022, 08:09 AM)egorcool009 Wrote: Hello everyone, quite recently I already addressed a question about the wire, but, fortunately, that problem was solved.
Now I have another difficulty - my wire, with a large stretch, "trembles" at the locations of the particles. I use Obi Rope for my wire.
Please tell me how to fix the jitter, I can't figure it out. Link to the repository - https://github.com/Mrak701/Oscilloscope-simulation

VIDEO - https://youtu.be/Gw85ySP5fu4

Your wire seems very overstretched, which means that if it's also colliding with other objects the solver has to choose between:

A) meet distance constraints (that is, try to keep the wire's length) which will violate collisions.
B) meet collision constraints (keep the wire out of colliders) which will violate distance constraints.

This causes jitter as the solver cannot decide what to do, if A or B. Either make the rope longer, or keep the user from stretching it past its rest length, since it's impossible for it to be much larger than its rest length and avoid penetration simultaneously: a real-world rope would have either snapped or made a dent in the surface it's colliding against.

Also take care to not attach the rope inside a collider, for the same reason above: if you present the solver with impossible to solve situations, it might cause jittering as it oscillates between multiple partial solutions to the problem.

Edit: also note that if you absolutely need to have a situation that's unsolvable, you can get jittering under control by increasing the solver's "sleep threshold". This will prevent particles from making small movements under this threshold value.
Reply


Messages In This Thread
The rope is shaking - by egorcool009 - 19-05-2022, 08:09 AM
RE: The rope is shaking - by josemendez - 19-05-2022, 08:19 AM