Table of Contents

Class Camera

Namespace
SharpPluginLoader.Core.View
Assembly
SharpPluginLoader.Core.dll

Represents an instance of a uCamera class.

public class Camera : Unit
Inheritance
Camera
Inherited Members

Constructors

Camera()

public Camera()

Camera(nint)

public Camera(nint instance)

Parameters

instance nint

Properties

AspectRatio

The aspect ratio of the camera.

public ref float AspectRatio { get; }

Property Value

float

FarClip

The far clip plane of the camera.

public ref float FarClip { get; }

Property Value

float

FieldOfView

The field of view of the camera, in radians.

public ref float FieldOfView { get; }

Property Value

float

NearClip

The near clip plane of the camera.

public ref float NearClip { get; }

Property Value

float

Position

The position of the camera, in world space coordinates.

public ref Vector3 Position { get; }

Property Value

Vector3

Target

The target of the camera, in local coordinates.

public ref Vector3 Target { get; }

Property Value

Vector3

Up

The up vector of the camera, in local coordinates.

public ref Vector3 Up { get; }

Property Value

Vector3

Methods

GetProjectionMatrix()

Computes the projection matrix of the camera.

public Matrix4x4 GetProjectionMatrix()

Returns

Matrix4x4

The projection matrix of the camera.

Remarks

Warning: This method does not perform any caching. It is recommended to cache the result of this method.

GetTargetWorld()

Gets the target of the camera in world space coordinates.

public Vector3 GetTargetWorld()

Returns

Vector3

The target of the camera in world space coordinates.

GetViewMatrix()

Computes the view matrix of the camera.

public Matrix4x4 GetViewMatrix()

Returns

Matrix4x4

The view matrix of the camera.

Remarks

Warning: This method does not perform any caching. It is recommended to cache the result of this method.