find_path

Function find_path 

Source
fn find_path<V>(
    astar: &mut Option<(Astar<Node, FxBuildHasher>, Vec3<f32>)>,
    vol: &V,
    startf: Vec3<f32>,
    endf: Vec3<f32>,
    traversal_cfg: &TraversalConfig,
    path_length: PathLength,
    flee_from: Option<Vec3<f32>>,
) -> PathResult<Vec3<i32>>
where V: BaseVol<Vox = Block> + ReadVol,
Expand description

Attempt to search for a path to a target, returning the path (if one was found) and whether it is complete (reaches the target)

If flee_from is Some this will attempt to both walk away from that position and towards the target.