Skip to main content

CameraLookAtXYZ

Description​

Rotates the camera smoothly to look at the given XYZ coordinates. Unlike the direct snap in CameraSetXYZ, this function animates the rotation toward the target position.

function CameraLookAtXYZ(x, y, z) --[[ ... ]] end

Parameters​

  • x: number - X coordinate to look at.
  • y: number - Y coordinate to look at.
  • z: number - Z coordinate to look at.

Return Values​

None.

Example​

None.