Checking for a collision between two objects

I am trying to call an action when two object collide. I have tried to check for a collision between my player & enemyPlayer like so:

function update ()
{ 
  console.log(this.physics.world.collide(player, enemyPlayer));
}

It returns false all the time even when I approch the enemyPlayer with my player.

I was using this API docs.

Any help will be appreciate it!

Hey Manuel, check out how to implement collision callbacks here.