- Home /
how can i rotate the camera around the object , which follows the object???
Hi, i am new to unity and i am trying roll the ball tutorial and i want camera to rotate around the ball while following it and the aswd keys should be always work as same, i tried a code and what exactly happening with that is camera rotates around the axis and follows the player but after that aswd start working opposite and i have to use mouse to rotate the camera please provide a better solution. and sorry for the bad English :p
I have to ask to clarify:
When you say, "aswd keys should...always work the same", I think what you're asking for is that the control of the ball should look the same from the new camera viewpoint.
I think what you're seeing is that when you rotate to one side, what was a control to the left becomes a move toward or away, and what was a control toward or away becomes left/right.
If so, what you're asking for will be how to control the ball from the camera's viewpoint.