Skip to content

Commit ca1a503

Browse files
committed
Fix incorrect default values for camera struct
1 parent bf074dd commit ca1a503

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/camera.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ struct Camera {
1414

1515
glm::mat4 GetViewMatrix();
1616
void UpdatePosition(MoveDirection direction, float delta_ms);
17-
glm::vec3 position = glm::vec3(0.0f, 0.0f, -1.0f);
17+
glm::vec3 position = glm::vec3(0.0f, 0.0f, 3.0f);
1818

1919
void UpdatePointingDirection(float delta_x, float delta_y);
2020

2121
// noramlized vector for where the camera is currently pointing
22-
glm::vec3 pointing_at = glm::vec3(0.0f, 0.0f, 1.0f);
22+
glm::vec3 pointing_at = glm::vec3(0.0f, 0.0f, -1.0f);
2323
float fov = glm::radians(45.0f);
2424

2525
// Camera angles in degrees

0 commit comments

Comments
 (0)