文档

Unity Engine

Unity Engine

avoidancePredictionTime

Describes how far in the future the agents predict collisions for avoidance.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public static float avoidancePredictionTime { get; set; }

Remarks

The larger the value, the earlier the agents will start to avoid each other if they are on collision course. The value is measured in seconds. Default value is 2.0, a good range for tuning is between 0.5 and 5.0.