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) => {
|
||||
const areaToInform = this.entity.areaToInform;
|
||||
return Rectangle.isTouching(
|
||||
Rectangle.translated(
|
||||
areaToInform,
|
||||
Vector.scale(Rectangle.size(areaToInform), -0.5),
|
||||
),
|
||||
this.entity.areaToInform,
|
||||
entity.visibleAabb
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user