Answers for "How can I find direction with known 2 projection angles on xz and yz planes?"
http://answers.unity.com/questions/1513987/how-can-i-find-direction-with-known-2-projection-a.html
The latest answers for the question "How can I find direction with known 2 projection angles on xz and yz planes?"Answer by JeyP4
http://answers.unity.com/answers/1514600/view.html
I find below code working for raycasting direction :)
Vector3 u = new Vector3 (-Mathf.Tan (B * Mathf.Deg2Rad), Mathf.Tan (A * Mathf.Deg2Rad), 1);
u= Quaternion.Euler(transform.eulerAngles.x, transform.eulerAngles.y, transform.eulerAngles.z) * u;
But anyways many thanx for considering my question to answer.Tue, 05 Jun 2018 11:41:00 GMTJeyP4Answer by Scribe
http://answers.unity.com/answers/1514338/view.html
The easiest way looks to be projecting the vector calculated from A onto the X axis and adding to the vector calculated for B (or the same technique the other way around)
Vector3 aVec = ...;
Vector3 bVec = ...;
Vector3.Project(aVec, transform.right)+bVec;Mon, 04 Jun 2018 20:53:37 GMTScribe