mirror of
https://github.com/godotengine/godot.git
synced 2024-09-20 14:32:42 +00:00
Merge pull request #88919 from nongvantinh/fix-88834
Revise implementation of C# `Aabb.GetSupport` to match the implementation in `core`
This commit is contained in:
commit
0cf42d6273
|
@ -318,9 +318,9 @@ namespace Godot
|
||||||
Vector3 ofs = _position + halfExtents;
|
Vector3 ofs = _position + halfExtents;
|
||||||
|
|
||||||
return ofs + new Vector3(
|
return ofs + new Vector3(
|
||||||
dir.X > 0f ? -halfExtents.X : halfExtents.X,
|
dir.X > 0f ? halfExtents.X : -halfExtents.X,
|
||||||
dir.Y > 0f ? -halfExtents.Y : halfExtents.Y,
|
dir.Y > 0f ? halfExtents.Y : -halfExtents.Y,
|
||||||
dir.Z > 0f ? -halfExtents.Z : halfExtents.Z);
|
dir.Z > 0f ? halfExtents.Z : -halfExtents.Z);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user