Answers for "How to get find euler angle provided I have Transformation Matrix"
http://answers.unity.com/questions/1593370/how-to-get-find-euler-angle-provided-i-have-transf.html
The latest answers for the question "How to get find euler angle provided I have Transformation Matrix"Answer by Captain_Pineapple
http://answers.unity.com/answers/1593410/view.html
Hey there,
I'm not sure if i understand your question correctly but heres a shot at your problem:
To get a relative rotation as a quaternion between 2 rotations you can follow the answer provided [here in this question.][1]
Of cause you can also convert the resulting quaternion to euler angles by simply accessing `myQuaternion.eulerAngles` . (This assumes you have a rotation called myQuaternion)
if you simply want to set one rotation the same as the other you can simply say:
`Cam1.transform.rotation = Cam2.transform.rotation;`
Of cause the opther way round will also work.
Hope this helps. For future questions i'd recommand that you write a bit more about your problem, your current code and what you have tried already. The more detailed you provide information on your issue the higher the probability that someone can actually help you.
[1]: https://answers.unity.com/questions/35541/problem-finding-relative-rotation-from-one-quatern.htmlWed, 23 Jan 2019 11:45:49 GMTCaptain_Pineapple