Skip to main content

project_grid_path_to_waypoints

Function project_grid_path_to_waypoints 

pub fn project_grid_path_to_waypoints(
    grid_path: &[(i32, i32)],
    cell_size_m: f32,
    origin_x: f32,
    origin_z: f32,
    out: &mut [[f32; 2]],
) -> usize
Expand description

Projects a 2D integer grid path into continuous world-space waypoints (Point2D on XZ plane), centering each cell coordinate and scaling by cell_size_m.

Returns the number of waypoints written into out.