pub fn new() -> Self {
        let up = glm::vec3(0.0, 1.0, 0.0);
        let mut ret = Self {
            pos: glm::vec3(0.0, 0.0, 0.0),
            front: glm::vec3(0.0, 0.0, -1.0),
            right: glm::vec3(0.0, 0.0, 0.0),
            up: up,
            world_up: up,
            yaw: -90.0,
            pitch: 0.0,
            zoom: 1.0,
            movement_speed: 30.0,
            mouse_sensitivity: 0.2,
            zoom_speed: 0.1,
        };

        ret.update_vectors();

        ret
    }
/// create a new camera using the default settings
create a new camera using the default settings
create a new camera using the default settings
pub fn new() -> Self {
        let up = glm::vec3(0.0, 1.0, 0.0);
        let mut ret = Self {
            pos: glm::vec3(0.0, 0.0, 0.0),
            front: glm::vec3(0.0, 0.0, -1.0),
            right: glm::vec3(0.0, 0.0, 0.0),
            up: up,
            world_up: up,
            yaw: -90.0,
            pitch: 0.0,
            zoom: 1.0,
            movement_speed: 30.0,
            mouse_sensitivity: 0.2,
            zoom_speed: 0.1,
        };
        ret.update_vectors();
        ret
    }
pub fn new ( ) -> Self { let up = glm :: vec3 ( 0.0 , 1.0 , 0.0 ) ; let mut ret = Self { pos : glm :: vec3 ( 0.0 , 0.0 , 0.0 ) , front : glm :: vec3 ( 0.0 , 0.0 , - 1.0 ) , right : glm :: vec3 ( 0.0 , 0.0 , 0.0 ) , up : up , world_up : up , yaw : - 90.0 , pitch : 0.0 , zoom : 1.0 , movement_speed : 30.0 , mouse_sensitivity : 0.2 , zoom_speed : 0.1 , } ; ret . update_vectors ( ) ; ret }
create a new camera using the default settings
create a new camera using the default settings