Skip to content

Commit

Permalink
Revise implementation to match the implementation in core
Browse files Browse the repository at this point in the history
Fixes: #88834
  • Loading branch information
nongvantinh committed Feb 27, 2024
1 parent 8f3e2a6 commit 52c4abe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/mono/glue/GodotSharp/GodotSharp/Core/Aabb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,9 @@ public readonly Vector3 GetSupport(Vector3 dir)
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>
Expand Down

0 comments on commit 52c4abe

Please sign in to comment.