Drag[en]gine Script Module DragonScript
1.23
|
Wrapper class for engine camera. More...
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... | |
Wrapper class for engine camera.
Allows altering the wrapped camera using scripted logic.
|
static |
Calculate field of view in degrees from focal length.
Camera Dragengine.Scenery.CameraWrapper.getCamera | ( | ) |
Wrapped camera.
float Dragengine.Scenery.CameraWrapper.getFov | ( | ) |
Field of view in degrees.
float Dragengine.Scenery.CameraWrapper.getFovRatio | ( | ) |
Field of view.
float Dragengine.Scenery.CameraWrapper.getImageDistance | ( | ) |
Image distance in meters.
Quaternion Dragengine.Scenery.CameraWrapper.getOrientation | ( | ) |
Orientation.
DVector Dragengine.Scenery.CameraWrapper.getPosition | ( | ) |
Position.
float Dragengine.Scenery.CameraWrapper.getViewDistance | ( | ) |
View distance in meters.
CameraWrapper Dragengine.Scenery.CameraWrapper.new | ( | ) |
Create camera wrapper.
CameraWrapper Dragengine.Scenery.CameraWrapper.new | ( | CameraWrapper | wrapper | ) |
Create copy of camera wrapper .
void Dragengine.Scenery.CameraWrapper.setFov | ( | float | fov | ) |
Set field of view in degrees.
void Dragengine.Scenery.CameraWrapper.setFovRatio | ( | float | ratio | ) |
Set field of view ratio.
void Dragengine.Scenery.CameraWrapper.setFromMatrix | ( | DMatrix | matrix | ) |
Set position and orientation from matrix.
void Dragengine.Scenery.CameraWrapper.setImageDistance | ( | float | distance | ) |
Set image distance in meters.
void Dragengine.Scenery.CameraWrapper.setOrientation | ( | Quaternion | orientation | ) |
Set orientation.
void Dragengine.Scenery.CameraWrapper.setPosition | ( | DVector | pos | ) |
Set position.
void Dragengine.Scenery.CameraWrapper.setRotation | ( | Vector | rotation | ) |
Set orientation from rotation in euler angles in degrees.
void Dragengine.Scenery.CameraWrapper.setViewDistance | ( | float | distance | ) |
Set view distance in meters.
void Dragengine.Scenery.CameraWrapper.update | ( | float | elapsed | ) |
Update camera for subclassing.
final float Dragengine.Scenery.CameraWrapper.fovFirstPerson = 90.00 |
Typical First Person FOV.
final float Dragengine.Scenery.CameraWrapper.fovLongTele = 6.87 |
Long Tele Camera FOV.
final float Dragengine.Scenery.CameraWrapper.fovMediumTele = 10.29 |
Medium Tele Camera FOV.
final float Dragengine.Scenery.CameraWrapper.fovNormal = 39.60 |
Normal Camera FOV.
final float Dragengine.Scenery.CameraWrapper.fovShortTele = 22.62 |
Short Tele Camera FOV.
final float Dragengine.Scenery.CameraWrapper.fovUltraWide = 83.97 |
Ultra Wide Camera FOV.
final float Dragengine.Scenery.CameraWrapper.fovWide = 65.47 |
Wide Camera FOV.