From f6422f403e0390dfe677e9f869843900144a1dda Mon Sep 17 00:00:00 2001 From: Adrian G L Date: Wed, 17 Sep 2025 22:27:23 +0200 Subject: [PATCH] feat: add camera position and orientation variables for tripod motion control --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index 9b2b942..effc9a6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -242,6 +242,11 @@ fn main() { // Used to demonstrate keyboard handling for exercise 2. let mut _arbitrary_number = 0.0; // feel free to remove + // camera position (x, y, z) and orientation (yaw, pitch) + let mut cam_pos: glm::Vec3 = glm::vec3(0.0, 0.0, 0.0); + let mut cam_yaw: f32 = 0.0; + let mut cam_pitch: f32 = 0.0; + // The main rendering loop let first_frame_time = std::time::Instant::now(); let mut previous_frame_time = first_frame_time;