Jump to content

Phaser 3 Collision Group Matter.js


MrSnrub
 Share

Recommended Posts

Found out how to do this. For anyone that might be interested, if you have sprites with matter.js bodies and don't want them to collide, you can set sprite.body.collisionFilter.group = -1 to the ones you don't want colliding and they won't collide with each other but they will still collide with everything else. For more detailed info:

http://www.iforce2d.net/b2dtut/collision-filtering

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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