diff --git a/src/astarnavigator/algorithms/Pythagoras3D.php b/src/astarnavigator/algorithms/Pythagoras3D.php index c271923b..939c64db 100644 --- a/src/astarnavigator/algorithms/Pythagoras3D.php +++ b/src/astarnavigator/algorithms/Pythagoras3D.php @@ -5,7 +5,7 @@ class Pythagoras3D implements IDistanceAlgorithm public function calculate(PathTile $from, PathTile $to) { if($from instanceof PathTileXYZ && $to instanceof PathTileXYZ){ - return Utils::distance_noroot($from->asVector(), $to->asVector()); + return Utils::distance($from->asArray(), $to->asArray()); } return 666; } diff --git a/src/entity/Attribute.php b/src/entity/Attribute.php deleted file mode 100644 index e69de29b..00000000 diff --git a/src/entity/AttributeMap.php b/src/entity/AttributeMap.php deleted file mode 100644 index e69de29b..00000000 diff --git a/src/entity/Colorable.php b/src/entity/Colorable.php deleted file mode 100644 index e69de29b..00000000 diff --git a/src/entity/Explosive.php b/src/entity/Explosive.php deleted file mode 100644 index e69de29b..00000000 diff --git a/src/entity/SizeInfo.php b/src/entity/SizeInfo.php deleted file mode 100644 index e69de29b..00000000 diff --git a/src/entity/WalkingEntity.php b/src/entity/WalkingEntity.php deleted file mode 100644 index 592b2ff5..00000000 --- a/src/entity/WalkingEntity.php +++ /dev/null @@ -1,13 +0,0 @@ -