Sfoglia il codice sorgente

Revise implementation to match the implementation in `core`

Fixes: #88834
Nông Văn Tình 1 anno fa
parent
commit
52c4abea17
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      modules/mono/glue/GodotSharp/GodotSharp/Core/Aabb.cs

+ 3 - 3
modules/mono/glue/GodotSharp/GodotSharp/Core/Aabb.cs

@@ -318,9 +318,9 @@ namespace Godot
             Vector3 ofs = _position + halfExtents;
             Vector3 ofs = _position + halfExtents;
 
 
             return ofs + new Vector3(
             return ofs + new Vector3(
-                dir.X > 0f ? -halfExtents.X : halfExtents.X,
-                dir.Y > 0f ? -halfExtents.Y : halfExtents.Y,
-                dir.Z > 0f ? -halfExtents.Z : halfExtents.Z);
+                dir.X > 0f ? halfExtents.X : -halfExtents.X,
+                dir.Y > 0f ? halfExtents.Y : -halfExtents.Y,
+                dir.Z > 0f ? halfExtents.Z : -halfExtents.Z);
         }
         }
 
 
         /// <summary>
         /// <summary>