How to detect collision ?

Hi,
I am new to photon, And I've spent the last two weeks trying to make a very simple 2d shooter (like diep.io), Now I'm in the shooting phase :smile: , I've made the shooting mechanics using RPCs but I don't know how to detect collision, scince there's a bit of lag that make the OnTriggerEnter2D useless, How can I detect the triggers ? Should I only detect them on the master? and if that's the only solution is there someway to choose the master manually (to make sure the master has a good internet speed and ping etc...)

Thanks in advance,

Comments

  • Detect the colliders locally and send the information that collide happen with rpc