2 NetworkedNavMeshAgent
Albin Corén редактировал(а) эту страницу 2018-03-30 10:05:28 +02:00

The NetworkedNavMeshAgent is a prototyping component that allows you to sync NavMeshAgents. It's designed to use less bandwidth and resources to get generally the same precision as the NetworkedTransform would give you.

It works by synchronizing the NavMeshAgent destination whenever it's changed. Alongside it sends the velocity and current position.

Settings

  • Enable Proximity - If enabled, only players in close proximity will get updates.
  • Proximity Range - This is the proximity distance in Unity units.
  • CorrectionDelay - This is the delay in seconds between Correction Updates
  • DriftCorrectionPercentage - This is the amount we lerp towards the correction destination. Set to 1 to snap on each correction, and to 0 to ignore the position portion of corrections.
  • WarpOnDestinationChange - If true, the agent will warp on destination change.