Jump to content

Bug in matter polygon collisions


mm
 Share

Recommended Posts

Hello, found a bug in the matter physics engine collision detector, I'm working with polygonal colliders. When an object collides with another and passes through it the "collision end" event doesn't trigger until de object is outside the real shape of the sprite (image size). I'm attaching a small video of it in which I'm logging the collision between the small vert of the triangle against the body of the other triangle, you can see how the "collision end" triggers when the vert enters and leave from the same side but not when it goes through  it (until leaving the image size).

Hope it helps fixing it! and if anyone knowns a workaround it would really help me.

Regards.

 

Edit: here's a small c9 demo (event trigger notification on console). 
https://ide.c9.io/mmolina01/phaser-matter-demo
https://phaser-matter-demo-mmolina01.c9users.io/

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...