fix: not sure what I was thinking
This commit is contained in:
parent
dcf871f3a0
commit
0dd94bd06d
|
@ -286,12 +286,8 @@ export class Informed extends decorate(Trait) {
|
||||||
},
|
},
|
||||||
|
|
||||||
seesEntity: (entity) => {
|
seesEntity: (entity) => {
|
||||||
const areaToInform = this.entity.areaToInform;
|
|
||||||
return Rectangle.isTouching(
|
return Rectangle.isTouching(
|
||||||
Rectangle.translated(
|
this.entity.areaToInform,
|
||||||
areaToInform,
|
|
||||||
Vector.scale(Rectangle.size(areaToInform), -0.5),
|
|
||||||
),
|
|
||||||
entity.visibleAabb
|
entity.visibleAabb
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user