diff --git a/src/visibility.rs b/src/visibility.rs index b5eef90..768c834 100644 --- a/src/visibility.rs +++ b/src/visibility.rs @@ -170,7 +170,10 @@ fn viewshed_changed( let translation = position.position.translation; let mut points = vec![]; for p in &viewshed.visible_points { - points.push(point!(p.x() - translation.x, p.y() - translation.y)); + points.push(point!( + p.x() - translation.x + 0.5, + p.y() - translation.y + 0.5 + )); } if let Some(shape) = ColliderShape::convex_hull(&points) { if let (Some(mut collider_shape), Some(mut collider_position)) =