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

NavMeshAgent [Syncing only agent Destination gives inconsistent results]

$
0
0
Hey guys,

Currently I am developing a game where I spawn units which are following way paths. I sync with RPC calls (which RPC is a coroutine) the agent destination (the next way point on the path). In addition, I have on the coroutine (the RPC call) check if there are enemy units in radius, if there are the next agent destination is the enemy unit. I have limited the FPS to 60 for both clients and there are discrepancies in unit locations (difference of a few metrical units, not that much but still there is unsync between clients).

How would you advise me to move my nav mesh agents so there is no difference between clients' units positions?

Viewing all articles
Browse latest Browse all 8947

Trending Articles



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