fix: ACTUALLY visible entities :)
This commit is contained in:
parent
38a907d9bb
commit
8916544193
|
@ -181,7 +181,7 @@ export class EntityList extends decorate(class {}) {
|
|||
if (-1 === entitiesChecked.indexOf(entity)) {
|
||||
entitiesChecked.push(entity);
|
||||
// Make sure the AABB is actually in the query due to expansion.
|
||||
if (Rectangle.intersects(query, aabb)) {
|
||||
if (entity.isVisible && Rectangle.intersects(query, aabb)) {
|
||||
entities.push(entity);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user