-6

I want to implement a third person camera, I have the coordinates of the camera let's say x,y,z and the pitch angle with which the camera is rotated and I have a character in front of me which I want to keep always in front I want to move the caracter so that when I rotate with the camera left right the caracter will still be in front of me.

I want something like this:

x,y,z coordinates of camera alfa angle of camera
character.move(x * sin(alfa) + y * cos(alfa)...

I want really figure out the character.move part.

4

1 に答える 1