#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/euler_angles.hpp>
+#include <glm/gtx/rotate_vector.hpp>
#include <glm/gtx/transform.hpp>
}
+void FPSController::OrientationVelocity(const glm::vec3 &vel) {
+ velocity = glm::rotateY(vel, yaw);
+}
+
+
void FPSController::Update(int dt) {
position += velocity * float(dt);
}
glm::mat4 Transform() const;
void Velocity(glm::vec3 vel) { velocity = vel; }
+ void OrientationVelocity(const glm::vec3 &vel);
void Position(glm::vec3 pos) { position = pos; }
void Move(glm::vec3 delta) { position += delta; }