collisionStart firing multiple times
See original GitHub issueHi! I wrote up a small plugin for adding collision events to bodies, but I’m looking to use this elsewhere, and I’m noticing that the ‘collisionStart’ event is being fired a lot of times compared what I would expect is a single collision between two boxes.
You can run the example included in the repo, but essentially I have two squares, BoxA and BoxB, falling onto the ground at different heights. I expected that there would be 3 collisionStart’s (and 3 corresponding collisionEnd’s), while there might be a bunch of collisionActive’s:
BoxAhits GroundBoxBhitsBoxA(BoxBis aboveBoxA)BoxBfalls over, hits Ground.
But instead I get something along the lines of 10-20 collisionStarts and Ends.

Is this intentional / expected? Am I doing something wrong?
Thanks for the great work you’ve done with this engine! It’s really awesome, and I’m looking forward to playing with it further!
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (4 by maintainers)

Top Related StackOverflow Question
Thanks for this, will check it out.
@gokadi can you check
Matter.versionis it0.18.0?If so can you try out the alpha build file included this PR? https://github.com/liabru/matter-js/pull/1079
Be great to know if it resolves, here’s the discussion on it https://github.com/liabru/matter-js/issues/1077