Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  No particles collision after resize
#2
(05-08-2020, 06:28 PM)vizgl Wrote: After I change rope length through code:
Code:
ropeCursor.ChangeLength(rope.restLength + 10);

newly added particles not colliding with each other, but old ones does.

Hi there,

This was fixed in Obi 5.4, though it's not yet on the store. Write to support(at)virtualmethodstudio.com and I'll send it to you.

Alternatively, you can just add this line:
Code:
rope.RecalculateRestPositions();

to ObiRopeCursor.cs at the end of the ChangeLength() method. It should look like this:

Code:
rope.RebuildConstraintsFromElements();
rope.RecalculateRestLength();
rope.RecalculateRestPositions();
}

kind regards,
Reply


Messages In This Thread
No particles collision after resize - by vizgl - 05-08-2020, 06:28 PM
RE: No particles collision after resize - by josemendez - 06-08-2020, 08:55 AM