public static Vector3 Calculate(Steering instance, Vector3 target, float panicDist) { Vector3 ToPersuer = target - instance.transform.position; float LookAheadTime = ToPersuer.magnitude / (instance.Owner.maxSpeed + target.magnitude); return(Flee.Calculate(instance, target + (target.normalized * LookAheadTime), panicDist)); }