Hello everyone.
I'm studying opengl and following the tutorials on the learnopengl website (https://learnopengl.com/)
Could someone please help me convert this camera from the learnopengl tutorial, from free camera to third person?
I've tried to put the values of the object (character), but I can't make the camera rotate around the player. Only the object walks in front of the camera, if I turn to the side, the object turns along, look like FPS camera and the object (character) being the weapon (hahahahahahaha)
The code to walk (keyboard):
void processKeyboard(Camera_Movement direction, float deltaTime)
{
frontY …