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... | |
Static class exposing access to the current view camera
Converts a point in world-space to the camera's screen-space.
true
, if the point is visible, false
otherwise.position | Position of the point in world-space. |
screenPosition | Position of the point in the camera's screen-space. |
Converts a point in world-space to the camera's viewport-space.
true
, if the point is visible, false
otherwise.position | Position of the point in world-space. |
viewportPosition | Position of the point in the camera's viewport-space. |
Transforms a direction from world space to local space of the camera.
direction |
|
inline static |
Converts a screenpoint from screen-space to world-space.
x | |
y |
|
static get set |
Gets or sets the field of view of the view camera in degrees.
The field of view.
|
static get set |
Get or set the facing direction of the current view camera.
|
static get set |
Set or get the position of the current view camera.
|
static get set |
Get or set the rotation of the current view camera
|
static get set |
Get or set the transformation matrix of the current view camera.