CameraEntity Class |
Namespace: GeonBit.Core.Graphics
public class CameraEntity
The CameraEntity type exposes the following members.
Name | Description | |
---|---|---|
![]() | CameraEntity |
Create a new camera instance
|
Name | Description | |
---|---|---|
![]() | Backward |
Get camera backward vector.
|
![]() | CameraType |
Set / get camera type.
|
![]() | FarClipPlane |
Set / Get camera far clip plane.
|
![]() | FieldOfView |
Set / Get camera field of view.
|
![]() | ForceScreenSize |
If defined, this will be used as screen size (affect aspect ratio in perspective camera,
and view size in Orthographic camera). If not set, the actual screen resolution will be used.
|
![]() | Forward |
Get camera forward vector.
|
![]() | NearClipPlane |
Set / Get camera near clip plane.
|
![]() | Position |
Get camera position.
|
![]() | Projection |
Return the current camera projection matrix.
|
![]() | View |
Get / Set the current camera view matrix.
|
![]() | ViewFrustum |
Get camera bounding frustum.
|
Name | Description | |
---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | RayFrom2dPoint |
Return a ray starting from the camera and pointing directly at a 2d position translated to 3d space.
This is a helper function that help to get ray collision based on camera and position on screen.
|
![]() | RayFrom3dPoint |
Return a ray starting from the camera and pointing directly at a 3d position.
|
![]() | RayFromMouse |
Return a ray starting from the camera and pointing directly at mouse position (translated to 3d space).
This is a helper function that help to get ray collision based on camera and mouse.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | UpdateViewPosition |
Store camera world position.
|