06-08-2020, 08:55 AM
(This post was last modified: 06-08-2020, 08:59 AM by josemendez.)
(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,