No, really.
This commit is contained in:
parent
9798988141
commit
21daafe913
|
@ -78,12 +78,12 @@ impl Viewshed {
|
||||||
return u8::MAX;
|
return u8::MAX;
|
||||||
}
|
}
|
||||||
let mut entities = HashSet::new();
|
let mut entities = HashSet::new();
|
||||||
let shape_pos = (Vec2::new(coord.x as f32 + 0.5, coord.y as f32 + 0.5), 0.);
|
|
||||||
let dest = point!(coord.x as f32 + 0.5, coord.y as f32 + 0.5);
|
let dest = point!(coord.x as f32 + 0.5, coord.y as f32 + 0.5);
|
||||||
if na::distance(&origin, &dest) > self.range as f32 {
|
if na::distance(&origin, &dest) > self.range as f32 {
|
||||||
return u8::MAX;
|
return u8::MAX;
|
||||||
}
|
}
|
||||||
let mut opacity = 0;
|
let mut opacity = 0;
|
||||||
|
let shape_pos = (Vec2::new(coord.x as f32 + 0.5, coord.y as f32 + 0.5), 0.);
|
||||||
query_pipeline.intersections_with_shape(
|
query_pipeline.intersections_with_shape(
|
||||||
&collider_set,
|
&collider_set,
|
||||||
&shape_pos.into(),
|
&shape_pos.into(),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user