소스 검색

Revise implementation to match the implementation in `core`

Fixes: #88834
Nông Văn Tình 1 년 전
부모
커밋
52c4abea17
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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;
 
             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>