mikewesthad / phaser-matter-collision-plugin

A plugin for making it easier to manage collisions with Phaser 3 + Matter.js
MIT License
99 stars 8 forks source link

Fixed an issue with removeOnCollide function #1

Closed Fantasix closed 5 years ago

Fantasix commented 5 years ago

Was causing the following errors : Uncaught ReferenceError: objectsA is not defined at MatterCollisionPlugin.removeOnCollide (phaser-matter-collision-plugin.js:199) at MatterCollisionPlugin.removeOnCollideStart (phaser-matter-collision-plugin.js:135)

mikewesthad commented 5 years ago

@Fantasix oof - thanks for fixing that! Merging it in and putting a new test in place to make sure that doesn't break again in the future