29 void Update(
float deltaTime);
A polar coordinate inline class, consisting of 2 angles theta (latitude) and rho (longitude).
Definition polar.h:28
Implements a free camera.
Definition freecamerautil.h:19
bool upKey
Definition freecamerautil.h:80
bool forwardsKey
Definition freecamerautil.h:76
void SetUpKey(bool state)
sets the up movement key
Definition freecamerautil.h:188
Math::point targetPosition
Definition freecamerautil.h:67
bool downKey
Definition freecamerautil.h:81
void SetRightStrafeKey(bool state)
sets the right strafe key
Definition freecamerautil.h:179
Math::polar viewAngles
Definition freecamerautil.h:65
FreeCameraUtil()
constructor
Definition freecamerautil.cc:14
void SetForwardsKey(bool state)
sets the forward movement key
Definition freecamerautil.h:152
float moveSpeed
Definition freecamerautil.h:71
void SetRotationSpeed(float speed)
sets the rotation speed
Definition freecamerautil.h:134
bool rotateButton
Definition freecamerautil.h:73
void SetRotateButton(bool state)
sets the state of the rotate button
Definition freecamerautil.h:107
Math::mat4 cameraTransform
Definition freecamerautil.h:68
Math::point position
Definition freecamerautil.h:66
void SetTargetPosition(Math::vec3 const &point)
sets the target position of the camera
Definition freecamerautil.h:98
bool accelerateButton
Definition freecamerautil.h:74
bool rightStrafeKey
Definition freecamerautil.h:79
void SetDownKey(bool state)
sets the down movement key
Definition freecamerautil.h:197
bool backwardsKey
Definition freecamerautil.h:77
Math::point defaultEyePos
Definition freecamerautil.h:61
void Setup(const Math::point &defaultEyePos, const Math::vector &defaultEyeVec)
sets up free camera
Definition freecamerautil.cc:37
float rotationSpeed
Definition freecamerautil.h:70
void SetAccelerateButton(bool state)
sets the state of the accelerate button
Definition freecamerautil.h:116
void SetLeftStrafeKey(bool state)
sets the left strafe key
Definition freecamerautil.h:170
Math::vec2 mouseMovement
Definition freecamerautil.h:63
Math::vector defaultEyeVec
Definition freecamerautil.h:62
void SetMouseMovement(Math::vec2 movement)
sets the mouse movement
Definition freecamerautil.h:125
bool leftStrafeKey
Definition freecamerautil.h:78
void SetMovementSpeed(float speed)
sets the movement speed
Definition freecamerautil.h:143
void Reset()
resets free camera to default values
Definition freecamerautil.cc:51
const Math::mat4 & GetTransform() const
gets camera transform
Definition freecamerautil.h:89
void SetBackwardsKey(bool state)
sets the backward movement key
Definition freecamerautil.h:161
Helpers to create geometry.
Definition drawfullscreenquad.cc:10
@ Update
Definition resourceloader.h:53
Vulkan::GraphicsDeviceState state
A 4x4 single point precision float matrix.
Definition mat4.h:49
Represents a 3D point in space.
Definition point.h:22
A 2-component float vector class.
Definition vec2.h:21
A 3D vector.
Definition vec3.h:40
A vector is a 3D direction in space.
Definition vector.h:22