Hi, I’m creating a Unity Network game. (I’m not using the NetworkManager. I have a seperate Server and Client).
I would like to use Unity’s built-in pathfinding. However, I want to generate the path with Unity Pathfinding, but move the character along the path myself.
Here’s what’s happening on the Network.
- Client sends move request to Server
- Server calculates path w/ Unity Pathfinding
- Server sends path to clients, and everyone moves along the path.
It looks like I can get some Vector3 Path information with
- NavMeshAgent.SetDestination.
- Vector3 myPath = NavMeshAgent.path.corners.
The problem is, this will move the character toward the destination automatically.
I just want to generate the path information and use it myself.
Is there a way to do this, or is there a better approach altogether.