Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


avoidancePredictionTime

Describes how far in the future the agents predict collisions for avoidance.
Read time 1 minuteLast updated 11 days ago

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.