[ADD] comments to camera and toolbox

This commit is contained in:
Nathalie Seen
2021-06-08 11:39:47 +02:00
parent a4d5658a06
commit 69d88ab1c1
3 changed files with 29 additions and 3 deletions

View File

@@ -14,12 +14,13 @@ namespace entities
private:
// The movement speed of the camera
const float SPEED = 0.5f;
const float UP_SPEED = 0.9f;
const float UP_SPEED = 1.0f;
glm::vec3 position;
glm::vec3 rotation;
public:
Camera(const ::glm::vec3& position, const ::glm::vec3& rotation);
/*
@@ -29,6 +30,11 @@ namespace entities
*/
void Move(GLFWwindow* window);
/*
* @brief follows the given position with smoothing
*
* @param follow_position the position of the object the camera has to follow
*/
void Follow(glm::vec3 follow_position);
inline glm::vec3 GetPosition() const{ return position; }