Simplify calculation query.
This commit is contained in:
parent
a4f0fa8aa4
commit
ae46114f6d
|
@ -183,10 +183,7 @@ fn calculate_path(
|
|||
query_pipeline: Res<QueryPipeline>,
|
||||
obstructions: Query<&MapObstruction>,
|
||||
collider_query: QueryPipelineColliderComponentsQuery,
|
||||
query: Query<
|
||||
(Entity, &Destination, &Coordinates, &ColliderShape),
|
||||
(Without<Calculating>, Without<NoPath>, Without<Path>),
|
||||
>,
|
||||
query: Query<(Entity, &Destination, &Coordinates, &ColliderShape), Changed<Destination>>,
|
||||
map: Query<&Map>,
|
||||
) {
|
||||
for (entity, destination, coordinates, shape) in query.iter() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user