I'm developing an RPG for iOS. Currently, I plan my controls to look like this: So the user can interact with objects, people, etc. by tapping on the right side of the screen, and moves by swiping ...
I'm trying to rotate a cube so that it's facing up, but am getting hung up on the final implementation details. It now reliably will rotate the x,y axis to the correct side, but the z-axis is never ...
How do I figure out the new angle and rotation vectors for the most visible side of the cube? Why: The user can rotate cube, but when finished I'd like the cube to snap to a side facing the user. ...