mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Fix C# operator *(Transform3D, AABB)
(cherry picked from commit 3bfadeff25)
This commit is contained in:
@@ -43,11 +43,11 @@ struct [[nodiscard]] Basis {
|
||||
Vector3(0, 0, 1)
|
||||
};
|
||||
|
||||
_FORCE_INLINE_ const Vector3 &operator[](int p_axis) const {
|
||||
return rows[p_axis];
|
||||
_FORCE_INLINE_ const Vector3 &operator[](int p_row) const {
|
||||
return rows[p_row];
|
||||
}
|
||||
_FORCE_INLINE_ Vector3 &operator[](int p_axis) {
|
||||
return rows[p_axis];
|
||||
_FORCE_INLINE_ Vector3 &operator[](int p_row) {
|
||||
return rows[p_row];
|
||||
}
|
||||
|
||||
void invert();
|
||||
|
||||
@@ -468,8 +468,8 @@ namespace Godot
|
||||
{
|
||||
for (int j = 0; j < 3; j++)
|
||||
{
|
||||
real_t e = transform.Basis[i][j] * min[j];
|
||||
real_t f = transform.Basis[i][j] * max[j];
|
||||
real_t e = transform.Basis[j][i] * min[j];
|
||||
real_t f = transform.Basis[j][i] * max[j];
|
||||
if (e < f)
|
||||
{
|
||||
tmin[i] += e;
|
||||
|
||||
Reference in New Issue
Block a user