basicly my setup is the following:
There is one object (“guide”), which is controled by logic bricks. Then there is another object (“follow”), which reads the orientation of “guide” and rotates the same way, but with one difference: I want on of the local axis (Z in this case) to be inverted.
This does work (“guide” turns positive on z-axis, “follow” does it negative) by inverting the sinus values for the z-rotation in the matrix:
rotationMatrix = -rotationMatrix rotationMatrix = -rotationMatrix
But this does only work, as long as “guide” only rotates around one axis. When I let it rotate around another axis too, I get strange deformations of “follow”:
Maybe someone could give me a hint or some help for some “clean” setup to realize this. I am not that good at math, so I guess there is a much better way than inverting the values.