First component… and so…??
Hi @AmicoCAD,
Keep in mind that Transform.GetYawPitchRoll finds the Tait-Byran angles (also loosely called Euler angles) for a rotation transformation. Perhaps this is a source of confusion?
– Dale
If the 2 logics are différents it will give différents results. It is like units quantity …
The question was:
How can I get Euler angles from a transformation matrix?
The answer is?
@AmicoCAD - my initial reply suggesting trying two methods.
– Dale
Forgive me Dale,
I will try to implement the second. Thank you
It clearly seems you did not understand what all the people here are trying to say… The methods Dale provided are one way of converting a transformation matrix into Euler angles. But depending on what you compute first, the result differ. There is not just one solution, there are dozens. If you use a 3rd party component to do the opposite, you need to make sure you are using the same order of operation, otherwise your “proof” is wrong. If you don’t want to rely on 3rd party code, you can choose one conversation and implement it by yourself. This is not rocket science, literally. In any-case, Euler angles are bad. Because you they can ‘Gimball lock’ if you rotate with them. This is why, rotations are usually expressed by rotation/transformation matrices or quaternions. If you think that you waste time by doing the research on your own, then this is the true source of evil, and not people here “wasting your” time. Especially, because you call yourself an ‘Mechanical/aeronautical junior engineer’, you should know this.
You are perfectly right except when you say that I should know these angles because they are topics of the master’s degree and flight dynamics.
I am working on transfering rotation from grasshopper to EU5 which require a rotator. Your script worked for me, thanks a lot