feat: add camera position and orientation variables for tripod motion control

This commit is contained in:
2025-09-17 22:27:23 +02:00
parent b08a38ce74
commit f6422f403e

View File

@@ -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;