I was trying to make a camera look at a certain object. I used the following code:
diff = objs[2].location - objs[0].location
rot_quat = diff.to_track_quat('-Z','Y')
Then, if I try to set the rotation using quaternion - it does not work.
camera.rotation_quaternion = rot_quat
But, when I try euler rotations - it works perfectly.
camera.rotation_euler = rot_quat.to_euler()
It seems weird to me that this should happen. Any ideas why this is?