Skip to main content

gate_interaction_points

Function gate_interaction_points 

Source
pub fn gate_interaction_points(
    agents: Query<'_, '_, (Entity, &AgentBlueprint, &StageCursor, Option<&InteractionPointCursor>), With<ResolveTransition>>,
    commands: Commands<'_, '_>,
)
Expand description

Gate: intercept a would-be transition for an interactive-points stage whose points aren’t all satisfied yet, routing the agent to the interaction-point lane instead. Stages with no points, or whose point cursor is past the end (all approved), fall through to the normal transition.