1 #ifndef BLANK_CONTROLLER_HPP_
2 #define BLANK_CONTROLLER_HPP_
5 #include "geometry.hpp"
16 explicit FPSController(Entity &);
18 Ray Aim() const { return entity.Aim(entity.ChunkCoords()); }
20 // all angles in radians (full circle = 2π)
21 float Pitch() const { return pitch; }
23 void RotatePitch(float delta);
24 float Yaw() const { return yaw; }
26 void RotateYaw(float delta);
28 void HandleKeyboard(const SDL_KeyboardEvent &);
29 void HandleMouse(const SDL_MouseMotionEvent &);
40 float pitch_sensitivity;
41 float yaw_sensitivity;
43 bool front, back, left, right, up, down;