Problem about opengl camera system.

Hello, im not experienced about this content
i tried writing a camera system, like rpg games.
Camera will look from behind of the character/object.

There is no problem. But when i tried move object i got problem. I couldnt follow the object with camera.

rot is degree of rotation, it doesnt matter. i need help about move object and camera together.

Problem solved.