diff --git a/src/main/java/cactusServer/entities/Area.java b/src/main/java/cactusServer/entities/Area.java index 90cfee8..20496b4 100644 --- a/src/main/java/cactusServer/entities/Area.java +++ b/src/main/java/cactusServer/entities/Area.java @@ -44,14 +44,12 @@ public boolean isSurroundingPosition(Position3D position) { for (Plain plain : region) { - // ������ Plain��a,b,c,d �� Character��x,y,z ��p����, �L�����N�^�[�����ʂɂ��邩�ǂ����̔�����s�� - - // double equation = (plain.getA() * position.getX()) + (plain.getB() * - // position.getY()) - // + (plain.getC() * position.getZ()) + plain.getD(); - // if (equation > 0) { - // return false; - // } + // ������ Plain��a,b,c,d �� Character��x,y,z ��p����, �L�����N�^�[�����ʂ̗��ɂ��邩�ǂ����̔�����s�� + double equation = (plain.getA() * position.getX()) + (plain.getB() * position.getY()) + + (plain.getC() * position.getZ()) + plain.getD(); + if (equation > 0) { + return false; + } } return true; }