includes/utils/Camera.hpp
Camera(glm::vec3 position, GLboolean onGround)
    {
        this->Position = position;
        this->WorldUp = glm::vec3(0.0f,1.0f,0.0f);
        this->Yaw = YAW;
        this->Pitch = PITCH;
        this->onGround = onGround;
        this->MovementSpeed = SPEED;
        this->MouseSensitivity = SENSITIVITY;
        // initialization of the camera reference system
        this->updateCameraVectors();
    }
//////////////////////////////////////////
// simplified constructor
// it can be extended passing different values of speed and mouse sensitivity, etc...
simplified constructor
it can be extended passing different values of speed and mouse sensitivity, etc
simplified constructor it can be extended passing different values of speed and mouse sensitivity etc
Camera(glm::vec3 position, GLboolean onGround)
    {
        this->Position = position;
        this->WorldUp = glm::vec3(0.0f,1.0f,0.0f);
        this->Yaw = YAW;
        this->Pitch = PITCH;
        this->onGround = onGround;
        this->MovementSpeed = SPEED;
        this->MouseSensitivity = SENSITIVITY;
        this->updateCameraVectors();
    }
Camera ( glm :: vec3 position , GLboolean onGround ) { this -> Position = position ; this -> WorldUp = glm :: vec3 ( 0.0f , 1.0f , 0.0f ) ; this -> Yaw = YAW ; this -> Pitch = PITCH ; this -> onGround = onGround ; this -> MovementSpeed = SPEED ; this -> MouseSensitivity = SENSITIVITY ; this -> updateCameraVectors ( ) ; }
simplified constructor
it can be extended passing different values of speed and mouse sensitivity, etc...
simplified constructor it can be extended passing different values of speed and mouse sensitivity etc ...
// initialization of the camera reference system