I’ve seen people asking this question before, and many answers that didn’t help me at all. I want to make a 3rd person camera that follows a rolling ball (aka the player), rotating around the ball (using the mouse). I’ve seen some good scripts before, but the only thing about them is that the camera shakes a lot since the camera starts rotating as the ball is rotating. (because the camera follows the rotation of the ball as well) My question is: How do I make a third person camera so that the ball rotates after the camera, the camera rotates with it, but the camera doesn’t rotate after the ball? Is it possible?
Let me put it this way: the camera has to rotate in air after the ball, but just on the Y axis, and the ball has to be able to roll around without the camera actually rolling like the ball, but just following it in the air. If the ball goes to right, the Y axis of the camera moves with it, so it follows it. Also, I’m a newbie with the scrips, so if you can show me concrete examples, it would be the best. Thanks!
This seems to be covered in the Unity - Roll a ball Tutorial in the chapter “Moving the camera”: https://unity3d.com/learn/tutorials/projects/roll-a-ball/moving-the-camera
There you will find a simple script attached.
In short they do not follow the balls rotation. You can set up your own rotation around the ball. You could parent the camera to an empty gameobject which follows the exact position of the ball. Offset the camera by the desired distance, then rotate the cameras parent around the y axis.
I hope this is helpful