Plz forgive me about my poor english.
I'm new to OpenGL dev and this forums. I followed the OpenGL tutorial from learnopengl, after finished the camera and model loading part, I wonder if I can do more about camera.
I try to code a camera behavior that fix the view to a model, be more clear, like some games that you can fix the view to the enemy object, and while you walk around the view of camera still stick to the enemy object. ( plz forgive my poor english )
I don't know the proper way to do that. My first thought is that If I need to bind camera view to an object, I need to know the location in the world coordinate of that object, then I can move the camera to see it.
I tried using raycasting picking to pick the object I loaded, but it is just that, I don't know what to do next.
Could you guys tell me the way to do so? Some links of similar staff are great as well. Thanks.