feat: add camera position and orientation variables for tripod motion control
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user