Erroneous rotation when setting the location of a camera with set_camera_location

Hi Isaac Gym team…

The rotation component (quaternion) of a camera transform reports erroneous values when the camera is located using the gym.set_camera_location(...) method.

Here is a minimal reproducible example that creates 2 cameras and use the transform of the first camera (cam1) to set the location of the second one (cam2): camera.py (2.2 KB)

# set camera 1 location
gym.set_camera_location(cam1, env, gymapi.Vec3(1, 1, 1), gymapi.Vec3(0, 0, 0))
# set camera 2 location using the cam1's transform
gym.set_camera_transform(cam2, env, gym.get_camera_transform(sim, env, cam1))