How do I make a sprite bounce off the walls in a multiplayer game?

Hi all

I want my ‘bouncer’ sprite to bounce off of the world bounds.

I know this is supposed to be done with:
bouncer.setCollideWorldBounds(true)
but this doesn’t work

Currently I am using:
this.physics.world.wrap(this.bouncers, 5);
and this does work, but it makes the bouncer appear on opposite side of screen instead of bounce of the wall

What can I do? Is there an alternative to this.physics.world.wrap(this.bouncers, 5); which tells the program to make the ‘bouncer’ object collide and bounce off the wall?

Thanks for your time

Full project:
https://replit.com/@jaimeggb/secure-real-time-multiplayer-game-3#authoritative_server/js/game.js

What happens?

Try changing to

this.bouncers = this.physics.add.group({ collideWorldBounds: true });