Skip to content

Commit 3bfadef

Browse files
committed
Fix C# operator *(Transform3D, AABB)
1 parent 0a4aedb commit 3bfadef

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

core/math/basis.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ struct [[nodiscard]] Basis {
4141
Vector3(0, 0, 1)
4242
};
4343

44-
_FORCE_INLINE_ const Vector3 &operator[](int p_axis) const {
45-
return rows[p_axis];
44+
_FORCE_INLINE_ const Vector3 &operator[](int p_row) const {
45+
return rows[p_row];
4646
}
47-
_FORCE_INLINE_ Vector3 &operator[](int p_axis) {
48-
return rows[p_axis];
47+
_FORCE_INLINE_ Vector3 &operator[](int p_row) {
48+
return rows[p_row];
4949
}
5050

5151
void invert();

modules/mono/glue/GodotSharp/GodotSharp/Core/Transform3D.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,8 @@ public Transform3D(Projection projection)
468468
{
469469
for (int j = 0; j < 3; j++)
470470
{
471-
real_t e = transform.Basis[i][j] * min[j];
472-
real_t f = transform.Basis[i][j] * max[j];
471+
real_t e = transform.Basis[j][i] * min[j];
472+
real_t f = transform.Basis[j][i] * max[j];
473473
if (e < f)
474474
{
475475
tmin[i] += e;

0 commit comments

Comments
 (0)