Original Post
Hey there, Im creating a little prototype at the moment and have run into some trouble. In the prototype the player is able to move across the sides of a cube. Now i want to create a nice little rotation effect when of the borders is reached. How i have it set up now is as follows: * Every side of the cube is assigned a normal. * When the border of a side is reached the normals of the two adjacent sides are placed into a cross product. Now this works in some situations, but the cross product should only produce rotations across the X and Y axis. For example the front side has a normal of (0,0,1) and the side on the left has a normal of (-1,0,0). Now taking the cross product of these produces a rotation across the Y axis what i would expect. Now when the normals (-1,0,0) and (0,1,0), or in other words moving from the left side to the top side, are placed in the cross product this resulsts in a rotation across the Z axis. My question is, am i using the correct method of determining these rotations by using normals? Or is there another way? Thanks in advance!