Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:Transform position from camera coordinate space to world coordinate space.

Syntax

Syntax:positionCameraToWorld position
Parameters:
  • position: Array - Position [x,z,y] offset to camera (the VBS Y- and Z-coordinates are swapped for this parameter).
Return Value:PositionAGL

Alternative Syntax

Syntax:positionCameraToWorld [position, considerSnow]
Parameters:
  • position: Array - Position [x,z,y] offset to camera (the VBS Y- and Z-coordinates are swapped for this parameter).
  • considerSnow: Boolean - If true, then the returned position is on top of any existing snow layers.
Return Value:PositionATL

Examples

Examples:
_worldPos = positionCameraToWorld _cameraPos
_worldPos = positionCameraToWorld [_cameraPos, true]

Additional Information

See also: cameraView
Multiplayer: 
Problems: 

Notes