Click or drag to resize
CameraEntity Class
A 3d camera object.
Inheritance Hierarchy
SystemObject
  GeonBit.Core.GraphicsCameraEntity

Namespace:  GeonBit.Core.Graphics
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class CameraEntity

The CameraEntity type exposes the following members.

Constructors
  NameDescription
Public methodCameraEntity
Create a new camera instance
Top
Properties
  NameDescription
Public propertyBackward
Get camera backward vector.
Public propertyCameraType
Set / get camera type.
Public propertyFarClipPlane
Set / Get camera far clip plane.
Public propertyFieldOfView
Set / Get camera field of view.
Public propertyForceScreenSize
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.
Public propertyForward
Get camera forward vector.
Public propertyNearClipPlane
Set / Get camera near clip plane.
Public propertyPosition
Get camera position.
Public propertyProjection
Return the current camera projection matrix.
Public propertyView
Get / Set the current camera view matrix.
Public propertyViewFrustum
Get camera bounding frustum.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRayFrom2dPoint
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.
Public methodRayFrom3dPoint
Return a ray starting from the camera and pointing directly at a 3d position.
Public methodRayFromMouse
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.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateViewPosition
Store camera world position.
Top
See Also