Adds a spatial filter: node global position must lie inside an axis-aligned box. `origin` is the box center in global space; `size` is the full box extent. Pass [`Vector2`]s to match 2D nodes or [`Vector3`]s to match 3D nodes; nodes of the other dimensionality (and non-spatial nodes) never match.
(self, origin: V, size: V)
| 1018 | self.and_expr(QueryExpr::Mask(BitMask::from_layers(layers))) |
| 1019 | } |
| 1020 | |
| 1021 | /// Adds a spatial filter: node global position must lie inside an |
| 1022 | /// axis-aligned box. |
| 1023 | /// |
| 1024 | /// `origin` is the box center in global space; `size` is the full box |
| 1025 | /// extent. Pass [`Vector2`]s to match 2D nodes or [`Vector3`]s to match |
| 1026 | /// 3D nodes; nodes of the other dimensionality (and non-spatial nodes) |
| 1027 | /// never match. |
| 1028 | pub fn within<V>(self, origin: V, size: V) -> Self |