Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rest length show incoherent value
#4
(17-11-2022, 12:37 PM)lufydad Wrote: If I want to clamp the length of the rope to its rest length, do you think it could be a great idea to for example reduce its length when strain is above 1 ?

Hi!

That's not a good idea, because the rope will permanently shrink once you stop pulling it. What you want is to simply reduce stretching.

You can do this by making sure the solver is able to withstand the stress forces and solve the system within the time budget given. This can be accomplished by:

A) - Reducing the mass ratio between the rope and the objects attached to it: intuitively speaking, if an object is hanging from a rope and you reduce the mass of the object (making it lighter) or increase the mass of the rope (making it heavier) the rope will stretch less.

Very heavy objects interacting with very light objects make for physics interactions that are harder to solve, so physics solvers need to spend more time to get an accurate solution. This is common to all existing physics engines.

B) - Reducing rope resolution, so that it uses less particles. This makes the simulation simpler and allows the solver to solve for larger mass ratios.

C) - Increasing the solver's budget, to allow it to solve more complex problems involving objects of wildly different masses. Simplest way to do this is to update the solver more often by spending more substeps in the simulation (you can find this setting in ObiFixedUpdater component). The manual has an in-depth explanation about how iterations/substeps affect the outcome, see:
http://obi.virtualmethodstudio.com/manua...gence.html

kind regards,
Reply


Messages In This Thread
Rest length show incoherent value - by lufydad - 17-11-2022, 11:24 AM
RE: Rest length show incoherent value - by josemendez - 17-11-2022, 01:05 PM