Function FunnelState.IsReasonableToPopStart
IsReasonableToPopStart
(float3 startPoint, float3 endPoint)
True if it is reasonable that the given start point has passed the first portal in the funnel.
Public
bool IsReasonableToPopStart (
float3 | startPoint | |
float3 | endPoint |
True if it is reasonable that the given start point has passed the first portal in the funnel.
If this is true, it is most likely better to pop the start/end portal of the funnel first.
This can be used as a heuristic to determine if the agent has passed a portal and we should pop it, in those cases when node information is not available (e.g. because the path has been invalidated).