Hi, I am fairly new to Unity3D; I figured I’d make a simple rotating cubes game as part of my learning curve. So, many weeks later having had to delve into Euler Angles, Quaternions, slippage due to conversions etc I am now almost where I need to be.
However, there is one part I cannot for the life of me figure out: I rotate a cube, release the key and the cube resolves to the nearest orthogonal axis, the emptyController and child Cube separate and the emptyController resets to its original settings. All good. I need to chiildCube to keep it’s new orientation but need to reset this orientation to (0, 0, 0). So far I have failed miserably. Basically I need to change the Inspector setting to 0, 0, 0 keeping the object the same.
If you post some code, you will probably get better help. Be sure to use the “Insert Code” button in the editing toolbar.
Hi Joe, on further study I now see that I am doing exactly the wrong thing: I am trying to rotate incrementally by key press and reading individual angles back to make choices…exactly what the documentation says to NOT do! So back to the drawing board for me.