调整obb实体获取判定
This commit is contained in:
parent
4498b71573
commit
35652ebe98
1 changed files with 3 additions and 1 deletions
|
@ -28,10 +28,12 @@ public abstract class LevelMixin {
|
||||||
if (entity instanceof OBBEntity obbEntity) {
|
if (entity instanceof OBBEntity obbEntity) {
|
||||||
for (OBB obb : obbEntity.getOBBs()) {
|
for (OBB obb : obbEntity.getOBBs()) {
|
||||||
if (OBB.isColliding(obb, pBoundingBox)) {
|
if (OBB.isColliding(obb, pBoundingBox)) {
|
||||||
|
if (!cir.getReturnValue().contains(entity)) {
|
||||||
cir.getReturnValue().add(entity);
|
cir.getReturnValue().add(entity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue