Click or drag to resize
IMyCameraWorldToScreen Method

[This is preliminary documentation and is subject to change.]

Gets screen coordinates of 3d world pos in 0 - 1 distance where 1.0 is screen width(for X) or height(for Y). WARNING: Y is from bottom to top.

Namespace: VRage.ModAPI
Assembly: VRage.Game (in VRage.Game.dll) Version: 1.0.0.0
Syntax
C#
Vector3D WorldToScreen(
	ref Vector3D worldPos
)

Parameters

worldPos
Type: Vector3D
World position.

Return Value

Type: Vector3D
Screen coordinate in 0-1 distance.
See Also