Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

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...