CameraController

Undocumented in source.

Members

Functions

input
void input(CameraKeybindings keybinds)

Move the camera using bound keys.

offsetScreenX
void offsetScreenX(float value)

Change the offset relative to the screen

offsetScreenZ
void offsetScreenZ(float value)

Change the offset relative to the screen

output
void output(Camera camera)

Update the camera based on controller data.

update
void update(CameraKeybindings keybinds, Camera camera)
Camera update(CameraKeybindings keybinds)

Get input and update the camera.

Variables

distance
float distance;

Distance between the camera and the followed object.

distanceFOVRatio
float distanceFOVRatio;

Distance to FOV ratio, used to correct projection parameters.

follow
Vector3 delegate() @(safe) follow;

Convience function to determine the camera's position.

offset
Vector3 offset;

Offset between camera and the followed object.

pitch
float pitch;

Camera pitch.

yaw
float yaw;

Camera yaw.

Meta