You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've created a container that adds balls in it, but I want the balls not to 'melt' into each other as pictured in the attached video.
xp.mp4
Note, I checked #951 and #5 as they seem to address a similar issue but couldn't find a clear solution for my problem there.
I tried increasing position and velocity iterations but they only seem to slightly reduce clipping, and I'm worried that a high value will affect performance. I've also tried playing around with restitution, friction, frictionStatic and slop values to no success so far (although it's been trial and error as I'm new to MatterJS).
There's also a bug where the circles will occasionally fall through the floor, especially when I resize the window as it doesn't match the browser's new dimensions.
Would appreciate any help if you've faced a similar issue :)
The text was updated successfully, but these errors were encountered:
jeremylee34
changed the title
How do I make circle bodies not 'melt' into each other?
How do I make circle bodies not 'clip/melt' into each other?
Feb 24, 2025
Uh oh!
There was an error while loading. Please reload this page.
I've created a container that adds balls in it, but I want the balls not to 'melt' into each other as pictured in the attached video.
xp.mp4
Note, I checked #951 and #5 as they seem to address a similar issue but couldn't find a clear solution for my problem there.
I tried increasing position and velocity iterations but they only seem to slightly reduce clipping, and I'm worried that a high value will affect performance. I've also tried playing around with restitution, friction, frictionStatic and slop values to no success so far (although it's been trial and error as I'm new to MatterJS).
There's also a bug where the circles will occasionally fall through the floor, especially when I resize the window as it doesn't match the browser's new dimensions.
Would appreciate any help if you've faced a similar issue :)
My versions:
My code:
The text was updated successfully, but these errors were encountered: