Report crashes, strange behaviour, or apparent bugs
- Posts: 57
- Joined: 18 Oct 2013, 09:02
The above mentioned function always gives 1 as a result of an inversion. Even this simple code:
Code: Select all
gives 1 as the answer although the matrix is invertible.
Is this a bug?
*EDIT* Just to add to this, the
function is also buggy as the values for the second angle (y-axis) jump around. Whereas, when I used the method in this pdf
, I get a continous range.
- Site Admin
- Posts: 7330
- Joined: 14 Dec 2012, 00:25
from the documentation of the sim.invertMatrix
, it clearly states:
return value: -1 if operation was not successful. In a future release, a more differentiated return value might be available
Did you check if your provided matrix was inverted or not? THe function return value just gives an information about whether it was successfully inverted or not.
About the Euler angles remark: jumping values in Euler angles are normal, since at some point you lose one degree of freedom (gimbal lock