lookAt#

Fully qualified name: isaacsim::core::includes::math::lookAt

inline pxr::GfQuatf isaacsim::core::includes::math::lookAt(
const pxr::GfVec3f &camera,
const pxr::GfVec3f &target,
const pxr::GfVec3f &up,
)#

Computes a look-at quaternion rotation.

Creates a rotation that orients an object to look at a target point. The up vector defines the world-space up direction for orientation.

Note

The up vector should not be parallel to the look direction

Parameters:
  • camera[in] Position of the camera/object

  • target[in] Point to look at

  • up[in] World-space up vector (typically {0,1,0})

Returns:

pxr::GfQuatf The resulting look-at rotation