summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-21 11:22:36 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-21 11:22:36 +0200
commit0cf42d627375b3cb6d8ec696cc235a5022d04c25 (patch)
tree0f313c08f799845ad89a21463ed5b796bd4fe282
parenta720ce304613d26fa7ece540af4a28709edb7e1a (diff)
parent52c4abea17caae784380465d77c0b18d20e7fe52 (diff)
downloadredot-engine-0cf42d627375b3cb6d8ec696cc235a5022d04c25.tar.gz
Merge pull request #88919 from nongvantinh/fix-88834
Revise implementation of C# `Aabb.GetSupport` to match the implementation in `core`
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/Aabb.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Aabb.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Aabb.cs
index ab7f8ede44..33f0850a8d 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Aabb.cs
+++ b/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>