How to get distance between two player in a photon multiplayer game. Condition is both the player is moving. I have tried something like this, in my player control script:
if (photonView.isMine)
pos1 = rigidBody.position;
else
pos2 = rigidBody.position;
Distance= Vector3.Distance(pos1-pos2)
But its not working. For a player the pos2 is always (0,0). Please help.