Collisions not working

Hi there. I am trying to get collision to work between players and objects using socket.io. My player is created by

const player = self.physics.add.sprite(playerInfo.x, playerInfo.y, 'ship').setOrigin(0.5, 0.5).setDisplaySize(53, 40);
self.players.add(player);

My object is created by

this.star = this.physics.add.sprite(randomPosition(700), randomPosition(500), 'star');

Objects position is sent to the players by

socket.emit('starLocation', { x: self.star.x, y: self.star.y });

Players correctly collide with one another by

this.physics.add.collider(this.players);

Overlap works correctly by

this.physics.add.overlap(this.players, this.star);

However, collider does not work using

this.physics.add.collider(this.players, this.star);

The players go through the objects. Thank you for any insight into this.

Hi you have missed the function name

Hey, espace, I removed the functions from the collider and still same result.

Hi,
I have the same problem, you could not use collider and overlap together
see => How to collide group with itself and each children push back the other