[ADD] camera follows the only at the z position

This commit is contained in:
Nathalie Seen
2021-06-04 14:44:41 +02:00
parent 2523e1abfa
commit 86383aace5
5 changed files with 34 additions and 8 deletions

View File

@@ -7,6 +7,10 @@ namespace entities
rotation(rotation)
{}
void Camera::Follow(glm::vec3 follow_position) {
position.z = follow_position.z + 200;
}
void Camera::Move(GLFWwindow* window)
{
float movement_speed = 0;