CryEngine.Camera

Static class exposing access to the current view camera More...

Static Public Member Functions

static Vector3 Unproject (int x, int y)
Converts a screenpoint from screen-space to world-space. More...
static bool ProjectToScreen (Vector3 position, out Vector3 screenPosition)
Converts a point in world-space to the camera's screen-space. More...
static bool ProjectToViewport (Vector3 position, out Vector3 viewportPosition)
Converts a point in world-space to the camera's viewport-space. More...
static Vector3 TransformDirection (Vector3 direction)
Transforms a direction from world space to local space of the camera. More...

Properties

static Vector3 Position [get, set]
Set or get the position of the current view camera. More...
static Vector3 ForwardDirection [get, set]
Get or set the facing direction of the current view camera. More...
static Matrix3x4 Transform [get, set]
Get or set the transformation matrix of the current view camera. More...
static Quaternion Rotation [get, set]
Get or set the rotation of the current view camera More...
static float FieldOfView [get, set]
Gets or sets the field of view of the view camera in degrees. More...

Detailed Description

Static class exposing access to the current view camera

Member Function Documentation

◆ ProjectToScreen()

static bool CryEngine.Camera.ProjectToScreen ( Vector3 position,
out Vector3 screenPosition
)
inline
static

Converts a point in world-space to the camera's screen-space.

Returns
true, if the point is visible, false otherwise.
Parameters
positionPosition of the point in world-space.
screenPositionPosition of the point in the camera's screen-space.

◆ ProjectToViewport()

static bool CryEngine.Camera.ProjectToViewport ( Vector3 position,
out Vector3 viewportPosition
)
inline
static

Converts a point in world-space to the camera's viewport-space.

Returns
true, if the point is visible, false otherwise.
Parameters
positionPosition of the point in world-space.
viewportPositionPosition of the point in the camera's viewport-space.

◆ TransformDirection()

static Vector3 CryEngine.Camera.TransformDirection ( Vector3 direction)
inline
static

Transforms a direction from world space to local space of the camera.

Parameters
direction
Returns

◆ Unproject()

static Vector3 CryEngine.Camera.Unproject ( int x,
int y
)
inline
static

Converts a screenpoint from screen-space to world-space.

Parameters
x
y
Returns

Property Documentation

◆ FieldOfView

float CryEngine.Camera.FieldOfView
static
get
set

Gets or sets the field of view of the view camera in degrees.

The field of view.

◆ ForwardDirection

Vector3 CryEngine.Camera.ForwardDirection
static
get
set

Get or set the facing direction of the current view camera.

◆ Position

Vector3 CryEngine.Camera.Position
static
get
set

Set or get the position of the current view camera.

◆ Rotation

Quaternion CryEngine.Camera.Rotation
static
get
set

Get or set the rotation of the current view camera

◆ Transform

Matrix3x4 CryEngine.Camera.Transform
static
get
set

Get or set the transformation matrix of the current view camera.