1 #ifndef BLANK_CONTROLLER_HPP_
2 #define BLANK_CONTROLLER_HPP_
14 glm::mat4 Transform() const;
16 void Velocity(glm::vec3 vel) { velocity = vel; }
17 void OrientationVelocity(const glm::vec3 &vel);
18 void Position(glm::vec3 pos) { position = pos; }
19 void Move(glm::vec3 delta) { position += delta; }
21 // all angles in radians (full circle = 2π)
22 float Pitch() const { return pitch; }
23 void Pitch(float p) { pitch = p; }
24 void RotatePitch(float delta) { pitch += delta; }
25 float Yaw() const { return yaw; }
26 void Yaw(float y) { yaw = y; }
27 void RotateYaw(float delta) { yaw += delta; }