However, in function mu::float4x4 Transform::toMatrix();, there is not this kind convertion.
And this lead to the bug.
While matrix_a is assigned to a Transform, matrix_b is the result of Transform.toMatrix().
The matrix_a is not equal to matrix_b!
Hi, unless you can provide us with information related to an actual bug or requirement, I regret to inform you that we are unable to provide support for questions specifically related to source code.
I checked the code in function
assignMatrix
, and it seems the rotation is inversed due to the right-hand to left-hand convertion.However, in function
mu::float4x4 Transform::toMatrix();
, there is not this kind convertion. And this lead to the bug. Whilematrix_a
is assigned to aTransform
,matrix_b
is the result ofTransform.toMatrix()
. Thematrix_a
is not equal tomatrix_b
!Is this intentional? And why?