1 #ifndef BLANK_CONTROLLER_HPP_
2 #define BLANK_CONTROLLER_HPP_
5 #include "geometry.hpp"
15 explicit FPSController(Entity &);
17 Ray Aim() const { return entity.Aim(entity.ChunkCoords()); }
19 const glm::vec3 &Velocity() const { return velocity; }
20 void Velocity(const glm::vec3 &vel) { velocity = vel; }
22 // all angles in radians (full circle = 2π)
23 float Pitch() const { return pitch; }
25 void RotatePitch(float delta);
26 float Yaw() const { return yaw; }
28 void RotateYaw(float delta);
46 explicit RandomWalk(Entity &);