I've a set up like this. image
I know the angles a,b,c which are the angles from the center pole to my stick. But I can't figure out how to apply the rotation to achieve this angle.
For e.g. a,b,c can be 90,90,0 which means my stick x axis is 90deg from the center pole, y 90 degree and z 0 which means my stick z axis is in parallel with the center pole.
These angles a,b,c I got are not the rotation angles that I can apply to my transform.
I'm stuck at how to rotate my object so that it maintains a particular angle with a reference object.
Any help is greatly appreciated. Thanks.
OK. So I can keep RotateAround this until I reach the angle I want. But how can I get the angle between two GOs? Thanks
– anon19270837oh so you want to measure the angle, Vector3.Angle might work: file:///Applications/Unity/Unity.app/Contents/Documentation/Documentation/ScriptReference/Vector3.Angle.html
– Scribeor Quaternion.Angle: file:///Applications/Unity/Unity.app/Contents/Documentation/Documentation/ScriptReference/Quaternion.Angle.html
– Scribe