matter-js
matter-js copied to clipboard
Rectangles sliding around, when on flat ground.
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?
Would you be able to provide a code example? A gif or video would help too, thanks.