May I use PathFinding on Server?

So Happy to use Pathfinding . I have already added rvo controller to my seeker,but everytime when unit search to a target,the stop position is no the same. . the rvo ctrl usually stop each other ,but every stop is different… if i use for net game,the client receive the same target position,they will see different enemy pos …

I want to konw how to avoid this issue… May I use these code to server? and my client use the server’s calc position,they will same …

Thanks a lot!

Hi

You can use pathfinding on the server. Pathfinding is deterministic (given the same start/end and the same graph, it will find the same path). However most motion is not deterministic in practice since the frame rate varies, so the characters on different computers may end up in slightly different positions. You will want to implement some syncing scheme to fix those errors, I think Unity has some tutorials about network synchronization.