BaseCamera

Base, abstract class for camera functionality.

Summary
BaseCameraBase, abstract class for camera functionality.
Functions
UpdateUpdates camera based on player input and amount of time passed.
cSetLocationSets the camera to the specified location.
setThetaSets the theta value for this camera.
setPhiSets the phi value for this camera.
ThetaReturns the theta value for this camera.
NKGetDeltaThetaReturns the change in theta from the previous frame.
PhiReturns the phi value for this camera.
NKGetLocationReturns the location of this camera.
ForwardVectorReturns the forward vector of this camera.
BackVectorReturns the Back vector of this camera.
LeftVectorReturns the left vector of this camera.
RightVectorReturns the right vector of this camera.
UpVectorReturns the up vector of this camera.
DownVectorReturns the down vector of this camera.
VelocityReturns the velocity of the camera.
NKScreenToWorldReturns a world space position from this camera
NKGetOrientationReturns the orientation of the camera as a quaternion.
FreeCameraFree camera class.
Functions
setMovementSpeedSets the movement speed of the free camera.
MovementSpeedGet the movement speed of this camera.
moveForwardMoves this camera forward in local space at the currently set speed.
moveBackwardMoves this camera backward in local space at the currently set speed.
moveLeftMoves this camera left in local space at the currently set speed.
moveRightMoves this camera right in local space at the currently set speed.
moveUpMoves this camera up in local space at the currently set speed.
moveDownMoves this camera down in local space at the currently set speed.
FirstPersonCameraFirst person camera class.
ThirdPersonCameraThird person camera class.

Functions

Update

Updates camera based on player input and amount of time passed.

cSetLocation

Sets the camera to the specified location.

Parameters

vec3The new location.

setTheta

Sets the theta value for this camera.

Parameters

floatThe new theta value for this camera.

setPhi

Sets the phi value for this camera.

Parameters

floatThe new phi value for this camera.

Theta

Returns the theta value for this camera.

Returns

floatThe theta value for this camera.

NKGetDeltaTheta

Returns the change in theta from the previous frame.

Returns

floatThe change in theta from the previous frame.

Phi

Returns the phi value for this camera.

Returns

floatThe phi value for this camera.

NKGetLocation

Returns the location of this camera.

Returns

vec3The location of this camera.

ForwardVector

Returns the forward vector of this camera.

Returns

vec3The forward vector of this camera.

BackVector

Returns the Back vector of this camera.

Returns

vec3The back vector of this camera.

LeftVector

Returns the left vector of this camera.

Returns

vec3The left vector of this camera.

RightVector

Returns the right vector of this camera.

Returns

vec3The right vector of this camera.

UpVector

Returns the up vector of this camera.

Returns

vec3The up vector of this camera.

DownVector

Returns the down vector of this camera.

Returns

vec3The down vector of this camera.

Velocity

Returns the velocity of the camera.

Returns

vec3The velocity of the camera.

NKScreenToWorld

Returns a world space position from this camera

Parameters

floatScreen X coordinate
floatScreen Y coordinate

Returns

vec3World space position

NKGetOrientation

Returns the orientation of the camera as a quaternion.

Returns

quatThe orientation of the camera.

FreeCamera

Free camera class.

Inherits:

Summary
Functions
setMovementSpeedSets the movement speed of the free camera.
MovementSpeedGet the movement speed of this camera.
moveForwardMoves this camera forward in local space at the currently set speed.
moveBackwardMoves this camera backward in local space at the currently set speed.
moveLeftMoves this camera left in local space at the currently set speed.
moveRightMoves this camera right in local space at the currently set speed.
moveUpMoves this camera up in local space at the currently set speed.
moveDownMoves this camera down in local space at the currently set speed.

Functions

setMovementSpeed

Sets the movement speed of the free camera.

Parameters

floatThe new speed of the camera.

MovementSpeed

Get the movement speed of this camera.

Returns

floatThe movement speed of this camera.

moveForward

Moves this camera forward in local space at the currently set speed.

moveBackward

Moves this camera backward in local space at the currently set speed.

moveLeft

Moves this camera left in local space at the currently set speed.

moveRight

Moves this camera right in local space at the currently set speed.

moveUp

Moves this camera up in local space at the currently set speed.

moveDown

Moves this camera down in local space at the currently set speed.

FirstPersonCamera

First person camera class.  This class overrides the BaseCamera class to implement custom logic in its Update function.  Interfacing with it is otherwise identical to interfacing with BaseCamera.

Inherits:

ThirdPersonCamera

Third person camera class.  This class overrides the BaseCamera class to implement custom logic in its Update function.  Interfacing with it is otherwise identical to interfacing with BaseCamera.

Inherits:

Base, abstract class for camera functionality.
Close