CameraDirectionZ()

Syntax

Result = CameraDirectionZ(#Camera [, Mode])
Description
Returns the 'z' direction vector of the camera.

Parameters

#Camera The camera to use.
Mode (optional) The mode to get the 'z' direction vector. It can be one of the following value:
  #PB_Absolute: get the absolute 'z' direction vector of the camera in the world (default).
  #PB_Relative: get the 'z' direction vector of the camera relative to its parent.

Return value

Returns the 'z' direction vector of the camera. This value is always between -1.0 and 1.0.

Supported OS

All

<- CameraDirectionY() - Camera Index - CameraFOV() ->