15-08-2023, 10:51 AM
(14-08-2023, 06:23 AM)josemendez Wrote: Just set the particle's inverse mass to zero, this will disable physics for them. Then override their position with your own calculations.The thing is that when I turn off the mass of a certain section of rope and reduce its length using _cursor.ChangeLength(_obiRope.restLength + lengthChange * Time.deltaTime);
You can use collision filters for this. You can also calculate and set them at runtime, see the very bottom of this page: http://obi.virtualmethodstudio.com/manua...sions.html
kind regards,
Then instead of shrinking on both sides, it shrinks only on the side where all particles have mass greater than 0.