Revise implementation to match the implementation in `core`

Fixes: #88834
This commit is contained in:
Nông Văn Tình 2024-02-27 23:19:15 +07:00
parent 8f3e2a6113
commit 52c4abea17
1 changed files with 3 additions and 3 deletions

View File

@ -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>