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