matter-js icon indicating copy to clipboard operation
matter-js copied to clipboard

Rectangles sliding around, when on flat ground.

Open JorensM opened this issue 2 years ago • 1 comments

Hello, I'm trying out, experimenting with matter.js, and I've come across an issue. I have a static rectangle for the ground, and then I have a function that spawns a small rectangle on mouse click. The problem is that when the boxes fall on the ground, for some reason they start sliding around ever so slightly. I tried changing the friction options for both the ground and the boxes, but it doesn't seem to change anything. When I spawn a box and it hits the ground without hitting other boxes, it doesn't slide around. But if it comes into contact with another dynamic box, then it start sliding across the ground. What could be the issue?

JorensM avatar Dec 01 '21 11:12 JorensM

Would you be able to provide a code example? A gif or video would help too, thanks.

liabru avatar Dec 20 '21 12:12 liabru