What is the best way to implement point and click movement with Fusion?

Options

I use Photon Fusion and I would like to navigate my player objects with the mouse, so that if I click somewhere, the player object calculates a path and starts walking there.

Is there a way to send Unity's built in NavMesh solution across the network or should I create a custom implementation?

Is it better to determine the concrete path on the Server or Input Authority Client and continuously synchronize the new position of the player object across the network, or should I risk to distribute the pathfinding task for all the other clients so that everyone calculates for his own?

I approciate any advice to get me started!

Answers

  • Davelot
    Options

    I got this answer on Discord from David J:

    "Having the server handle pathing could be enough, send your nav sampled destination point as input and let server move with net transform.. probably the easiest way to start

    /disable agent on client"