DIFF

class CameraSource

Camera Entity ObjectTyped Object IEntity Managed

All members, including inherited

Methods 13

static proto native Camera GetCurrentCamera()

Returns active Camera instance (note: player's camera is not Camera instance - thus it return null)

Returns: Camera active Camera instance

static proto native float GetCurrentFOV()

Returns FOV of current camera object

Returns: float FOV of current camera object

static proto native void InterpolateTo(Camera targetCamera, float time, int type)

Interpolation between camera instances (current camera becomes targetCamera at the end of interpolation)

targetCamera
to which camera we want to interpolate
time
true interpolation time
type
0 = without dynamics 1 = first half - acceleration, second half deceleration 2 = first third - acceleration, second third - linear movement, last third - deceleration
static proto native bool IsInterpolationComplete()

Checks if the current interpolation reached it's end

proto native void SetNearPlane(float nearPlane)

set near plane of camera

nearPlane
clamped internally to 0.01m
proto native float GetNearPlane()

get near plane of camera

proto native void EnableSmooth(bool enable)

Enables the smoothing in interpolation

proto native void StopInterpolation()

Performs cleanup. Important to call when interpolation run is finished.

proto native void SetFocus(float distance, float blur)

Depth of Field settings

distance
DOF distance parameter
blur
DOF blur parameter
proto native void LookAt(vector targetPos)

Orientation change by lookAt point

targetPos
where to look at