Hi guys sorry for the trouble once again. The method that i tried yesterday wasn’t working.
Ok the problem is this. Imagine with me. I want a plane in front of the cube to inherit only the x and z axis rotation of the cube. However after a week of trying, i am getting no where.
I tried using transform.rotation.x but it returns me strange value, etc
-3.090862E_08.
I tried transform.eulerAngles.x but to no avail as well. as the rotation in unity fully utilize 3 axis, I am unable to only take the information of the 2 axis and pass it to the plane.
Tried parenting the plane to the cube and then manually using transform.Rotate to rotate the y axis of the plane back to its original position but again, to no avail.
Do help me pls. I am kind of at a desperate end now. Am just a student but the dead line is over due and i am still stuck at this kind of stupid issue.
Any idea of cheating or solutions to my questions are welcomed.
Thank you very much guys.