Simple collision

Options
Hi,

Let's say I have a moving key in the room, and two players are racing towards it. How can I detect who touches it first?

Is there a way to do this with Photon? I know photon may have a collision limitation. Is there a way to detect which player (simple spheres or 2d sprites) collides first with a moving object in the level?

I just want to detect which of the 2 players hits an object first so I can add a point to their score.

Thanks

Comments

  • vadim
    Options
    Hi,

    Photon can't detect collisions but it can notify other clients about collision detected. Choose which client should do detection (master is good candidate to avoid racing conditions), detect it by Unity means and send RPC to all in the room to update states or to collided player only to update player properties e.g..