(2024-04-08, 20:18)Manfred Schaefer Wrote: Hello,
I am trying to calculate the individual rotations (Euler angles) around the three axes from the rotation matrix.
I have also tried it with quaternions, but somehow it doesn't work.
Has anyone tried something like this before and can give me a solution or tips?
Thank you.
Manfred
The LDraw transformation matrix is a general transformation matrix, so it is possible that what you want is not possible for some arbitrary one. Having said that, the matrix applied to parts should always contain only rotations and translations, so hopefully this StackOverflow answer helps:
https://stackoverflow.com/questions/1502...x#15029416