Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.CameraWrapper Class Reference

Wrapper class for engine camera. More...

Inheritance diagram for Dragengine.Scenery.CameraWrapper:

Public Member Functions

Camera getCamera ()
 Wrapped camera. More...
 
float getFov ()
 Field of view in degrees. More...
 
float getFovRatio ()
 Field of view. More...
 
float getImageDistance ()
 Image distance in meters. More...
 
DMatrix getMatrix ()
 Camera matrix. More...
 
Quaternion getOrientation ()
 Orientation. More...
 
DVector getPosition ()
 Position. More...
 
float getViewDistance ()
 View distance in meters. More...
 
CameraWrapper new ()
 Create camera wrapper. More...
 
CameraWrapper new (CameraWrapper wrapper)
 Create copy of camera wrapper . More...
 
void setFov (float fov)
 Set field of view in degrees. More...
 
void setFovRatio (float ratio)
 Set field of view ratio. More...
 
void setFromMatrix (DMatrix matrix)
 Set position and orientation from matrix. More...
 
void setImageDistance (float distance)
 Set image distance in meters. More...
 
void setOrientation (Quaternion orientation)
 Set orientation. More...
 
void setPosition (DVector pos)
 Set position. More...
 
void setRotation (Vector rotation)
 Set orientation from rotation in euler angles in degrees. More...
 
void setViewDistance (float distance)
 Set view distance in meters. More...
 
void update (float elapsed)
 Update camera for subclassing. More...
 

Static Public Member Functions

static float fovFromFocal (float filmSize, float focalLength)
 Calculate field of view in degrees from focal length. More...
 

Public Attributes

final float fovFirstPerson = 90.00
 Typical First Person FOV. More...
 
final float fovLongTele = 6.87
 Long Tele Camera FOV. More...
 
final float fovMediumTele = 10.29
 Medium Tele Camera FOV. More...
 
final float fovNormal = 39.60
 Normal Camera FOV. More...
 
final float fovShortTele = 22.62
 Short Tele Camera FOV. More...
 
final float fovUltraWide = 83.97
 Ultra Wide Camera FOV. More...
 
final float fovWide = 65.47
 Wide Camera FOV. More...
 

Detailed Description

Wrapper class for engine camera.

Allows altering the wrapped camera using scripted logic.

Member Function Documentation

◆ fovFromFocal()

static float Dragengine.Scenery.CameraWrapper.fovFromFocal ( float  filmSize,
float  focalLength 
)
static

Calculate field of view in degrees from focal length.

◆ getCamera()

Camera Dragengine.Scenery.CameraWrapper.getCamera ( )

Wrapped camera.

◆ getFov()

float Dragengine.Scenery.CameraWrapper.getFov ( )

Field of view in degrees.

◆ getFovRatio()

float Dragengine.Scenery.CameraWrapper.getFovRatio ( )

Field of view.

◆ getImageDistance()

float Dragengine.Scenery.CameraWrapper.getImageDistance ( )

Image distance in meters.

◆ getMatrix()

DMatrix Dragengine.Scenery.CameraWrapper.getMatrix ( )

◆ getOrientation()

Quaternion Dragengine.Scenery.CameraWrapper.getOrientation ( )

Orientation.

◆ getPosition()

DVector Dragengine.Scenery.CameraWrapper.getPosition ( )

Position.

◆ getViewDistance()

float Dragengine.Scenery.CameraWrapper.getViewDistance ( )

View distance in meters.

◆ new() [1/2]

CameraWrapper Dragengine.Scenery.CameraWrapper.new ( )

Create camera wrapper.

◆ new() [2/2]

CameraWrapper Dragengine.Scenery.CameraWrapper.new ( CameraWrapper  wrapper)

Create copy of camera wrapper .

◆ setFov()

void Dragengine.Scenery.CameraWrapper.setFov ( float  fov)

Set field of view in degrees.

◆ setFovRatio()

void Dragengine.Scenery.CameraWrapper.setFovRatio ( float  ratio)

Set field of view ratio.

◆ setFromMatrix()

void Dragengine.Scenery.CameraWrapper.setFromMatrix ( DMatrix  matrix)

Set position and orientation from matrix.

◆ setImageDistance()

void Dragengine.Scenery.CameraWrapper.setImageDistance ( float  distance)

Set image distance in meters.

◆ setOrientation()

void Dragengine.Scenery.CameraWrapper.setOrientation ( Quaternion  orientation)

Set orientation.

◆ setPosition()

void Dragengine.Scenery.CameraWrapper.setPosition ( DVector  pos)

Set position.

◆ setRotation()

void Dragengine.Scenery.CameraWrapper.setRotation ( Vector  rotation)

Set orientation from rotation in euler angles in degrees.

◆ setViewDistance()

void Dragengine.Scenery.CameraWrapper.setViewDistance ( float  distance)

Set view distance in meters.

◆ update()

void Dragengine.Scenery.CameraWrapper.update ( float  elapsed)

Update camera for subclassing.

Member Data Documentation

◆ fovFirstPerson

final float Dragengine.Scenery.CameraWrapper.fovFirstPerson = 90.00

Typical First Person FOV.

◆ fovLongTele

final float Dragengine.Scenery.CameraWrapper.fovLongTele = 6.87

Long Tele Camera FOV.

◆ fovMediumTele

final float Dragengine.Scenery.CameraWrapper.fovMediumTele = 10.29

Medium Tele Camera FOV.

◆ fovNormal

final float Dragengine.Scenery.CameraWrapper.fovNormal = 39.60

Normal Camera FOV.

◆ fovShortTele

final float Dragengine.Scenery.CameraWrapper.fovShortTele = 22.62

Short Tele Camera FOV.

◆ fovUltraWide

final float Dragengine.Scenery.CameraWrapper.fovUltraWide = 83.97

Ultra Wide Camera FOV.

◆ fovWide

final float Dragengine.Scenery.CameraWrapper.fovWide = 65.47

Wide Camera FOV.


The documentation for this class was generated from the following file: