diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-21 11:22:36 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-21 11:22:36 +0200 |
commit | 0cf42d627375b3cb6d8ec696cc235a5022d04c25 (patch) | |
tree | 0f313c08f799845ad89a21463ed5b796bd4fe282 | |
parent | a720ce304613d26fa7ece540af4a28709edb7e1a (diff) | |
parent | 52c4abea17caae784380465d77c0b18d20e7fe52 (diff) | |
download | redot-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.cs | 6 |
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> |