26-11-2021, 12:02 PM
(26-11-2021, 09:33 AM)josemendez Wrote: Hi!
Just reduce particle radius (solver.principalRadii). This can easily be done using the particle API:
http://obi.virtualmethodstudio.com/manua...icles.html
For detecting collisions, you can use collision callbacks. Each contact provides body and simplex indices, from which you can determine the particle(s) you need to change the radii of:
http://obi.virtualmethodstudio.com/manua...sions.html
How do I reduce the radius of 3 particles(middle particle detecting by collision) I specified using "solver.principalRadii"? can you show an example? Because only the get operation is performed in the method you linked. Do you think I should modify the asset code? Or am I thinking wrong?