Get the rotations that would make a (0,0,1) direction vector point in the same direction as this direction vector.
blAaarg wrote:I don't know how you're doing your scaling or what bizarre results you get so I can only guess. The matrix rotation and scaling happen around the cube's local origin before translation (or, you could say it spins and scales around its absolute position after positioning it) but the unit cube is not centered in its own space. Its front left bottom corner is on the origin.
Users browsing this forum: No registered users and 1 guest