Skip to main content

spatial_navigate

Function spatial_navigate 

Source
pub fn spatial_navigate(
    graph: &FocusGraph,
    origin: FocusId,
    dir: NavDirection,
) -> Option<FocusId>
Expand description

Find the best spatial navigation target from origin in dir.

Returns None if no valid candidate exists. Explicit graph edges take precedence over spatial search.