Phaser 3: Matter physics detect collision
After looking at examples here, To call a function on collision, use the 'oncollisionStart' event like in this example.
this.matter.world.on('collisionstart', function (event, bodyA, bodyB) {
console.log('collision');
});