Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

How to detect collision ?

$
0
0
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,

Viewing all articles
Browse latest Browse all 8947


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>