yandeu / arcade-physics

Use Arcade Physics without Phaser.
GNU Lesser General Public License v3.0
49 stars 3 forks source link

World collider callback is not a function #7

Open jchene opened 1 year ago

jchene commented 1 year ago

All is in the title, the Factory Collider used by Arcade.Physics.World.add takes a "ColliderCallback" interface as argument which is not a callback. In the phaser 3 documentation it takes instead a ArcadePhysicsCallback very much like the Overlap method

yandeu commented 1 year ago

I guess this (https://github.com/yandeu/arcade-physics/commit/e3633bd7fa0acbbcec2c513ca0e6b41c3018626c) fixes it?

jchene commented 1 year ago

After looking at the code and documentation i made some small modifications and did a pr, it works for me but you can let me know if any new conflict/bug shows up