Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Copy position from one rope to another
#11
I'm having a problem using the method describe above with multiple ropes. To summarize briefly, I use copy all the positions of active particles in a given obi solver (solver 0) and I apply these positions in another solver (solver 1) using this way :

Code:
for(int i=0; i<nbrActiveParticles;i++)
    solver1.positions[solver1.activeParticles[i]] = solver0.positions[solver0.activeParticles[i]];

But with multiples ropes, it seems like the ropes must be joined together... Like on this capture : https://imgur.com/a/0Xtm2Tq (on top it corresponds to the bug and bellow to the normal positions)
Is there some parameters that I need to check for render in solvers ?

Moreover, to get the array of activeParticles in obi solvers I had to change the code of the ObiSolver.cs and move activeParticles from private to public. It's a bit dirty... is there another way to get this array ?
Reply


Messages In This Thread
RE: Copy position from one rope to another - by lufydad - 31-01-2022, 04:42 PM