To implement pole-camera I use GCC4 code example, but instead of DirectX I try to use OpenGL API and GLM library for math. I was faced with the following problem, that when I apply torque to target (press 'A' or ''D') , it rotates right accordingly, the camera is spinning too, but target does not translate. In the result, target moves out of view after a while. I don't know I explained correctly and clearly. So, I capture this moment.
youtu.be/hquKiYlm13Q
How can fix this problem ? Or at least guide in the right path.
I suppose, target rotates around world origin and does not translated in the previous place, where it was.
youtu.be/hquKiYlm13Q
How can fix this problem ? Or at least guide in the right path.
I suppose, target rotates around world origin and does not translated in the previous place, where it was.
The post was edited 2 times, last by itisscan ().