Compare commits

..

No commits in common. "56dc32cce361c1488b504f3dd43aeda5d68ad83e" and "1fa48f89abeedbd7e01e541289b0a645520f56dd" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ pub struct FootstepPlugin;
impl Plugin for FootstepPlugin { impl Plugin for FootstepPlugin {
fn build(&self, app: &mut App) { fn build(&self, app: &mut App) {
app.add_systems(PreUpdate, added).add_systems( app.add_systems(PreUpdate, added).add_systems(
FixedPostUpdate, PostUpdate,
update.after(TransformSystem::TransformPropagate), update.after(TransformSystem::TransformPropagate),
); );
} }

View File

@ -86,7 +86,7 @@ impl Viewshed {
} else { } else {
let should_push = std::cell::RefCell::new(true); let should_push = std::cell::RefCell::new(true);
let coord = Vec2::new(coord.x as f32 + 0.5, coord.y as f32 + 0.5); let coord = Vec2::new(coord.x as f32 + 0.5, coord.y as f32 + 0.5);
let dir = Dir2::new_unchecked((coord - *start).normalize_or_zero()); let dir = Dir2::new_unchecked((coord - *start).normalize());
// println!("Casting from {coord} to {dir:?}"); // println!("Casting from {coord} to {dir:?}");
spatial_query.cast_ray_predicate( spatial_query.cast_ray_predicate(
*start, *start,