CameraZ()

Syntax

Result = CameraZ(#Camera [, Mode])
Description
Returns the current position of the camera in the world.

Parameters

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

Return value

Returns the 'z' position of the camera.

See Also

CameraX(), CameraY(), MoveCamera()

Supported OS

All

<- CameraYaw() - Camera Index - CreateCamera() ->