Skip to content

Commit

Permalink
Merge pull request #88919 from nongvantinh/fix-88834
Browse files Browse the repository at this point in the history
Revise implementation of C# `Aabb.GetSupport` to match the implementation in `core`
  • Loading branch information
akien-mga committed May 21, 2024
2 parents a720ce3 + 52c4abe commit 0cf42d6
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 0cf42d6

Please sign in to comment.