Skip to content

Commit

Permalink
Shift navigation path up
Browse files Browse the repository at this point in the history
  • Loading branch information
janhohenheim committed Jan 22, 2024
1 parent 38c5925 commit 54233dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/movement/navigation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,13 @@ fn query_mesh(
.context("Failed to read dev window state")?
.navmesh_render_enabled;
if nav_render_enabled {
let shifted_path = path
.iter()
.map(|point| *point + Vec3::new(0., 0.2, 0.))
.collect::<Vec<_>>();
commands.spawn(DrawPath {
timer: Some(Timer::from_seconds(4.0, TimerMode::Once)),
pulled_path: path.clone(),
pulled_path: shifted_path,
color: Color::BLUE,
});
}
Expand Down

0 comments on commit 54233dd

Please sign in to comment.