diff --git a/include/Nazara/Math/Sphere.inl b/include/Nazara/Math/Sphere.inl index 02847b243..ec7e750de 100644 --- a/include/Nazara/Math/Sphere.inl +++ b/include/Nazara/Math/Sphere.inl @@ -295,7 +295,7 @@ namespace Nz template bool Sphere::Intersect(const Sphere& sphere) const { - return GetPosition().SquaredDistance(sphere.x, sphere.y, sphere.z) <= IntegralPow(radius + sphere.radius, 2); + return GetPosition().SquaredDistance(Vector3(sphere.x, sphere.y, sphere.z)) <= IntegralPow(radius + sphere.radius, 2); } /*!