Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Copy position from one rope to another
#6
Sonrisa 
(14-01-2022, 10:10 AM)josemendez Wrote: Hi!

What you need in this case is for the renderers to keep updating the rope mesh as if the solver was being updated, but without updating the solver. This means taking control of the update cycle.

You can inherit from ObiUpdater to write your own updater component for this, or slightly modify one of the existing ones to add a "simulate" boolean flag. While this flag is inactive, call updater.Interpolate() but don't call BeginStep(), Substep() or EndStep(). This will trigger rendering updates as if the simulation was running.

Note that you can also deactivate simulation on a per-particle basis, by setting the particle inverse mass to 0 (see http://obi.virtualmethodstudio.com/manua...icles.html):


If you do this for all particles in a solver, most housekeeping stuff (updating internal spatial structures, updating constraints) will still be performed, so the performance gains are negligible compared to not updating the entire solver.

Thanks a lot it seems to work Gran sonrisa

I return on my problem of "teleportation" which reappeared (cf. the right rope on https://imgur.com/a/AZ3G4f8), do you have an idea where it may come from ?
Reply


Messages In This Thread
RE: Copy position from one rope to another - by lufydad - 14-01-2022, 02:17 PM