This is not exactly what I meant.
For illustrating I attached some screen shots:
Left picture:
Start position. object1 = blue torus, object2 = white torus)
Middle picture:
Your end position. Your code seems to copy the complete orientation of object2 to object1
Right picture:
Desired end position. I want to rotate object1 according to the orientation of object2. Kinda object1.setEuler([0,0,45],viz.REL_LOCAL_of_object2)
|