I was trying to make a camera look at a certain object. I used the following code:
diff = objs.location - objs.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?