- Home /
Camera Rotation around the scene
Hi I have a camera ...attached to a character and camera follows ..the character ....the problems ..is if the character hit any GameObject the camera is rotating continuous...around 360 degrees...i am using ...
public Transform Target;
void Start () {
}
// Update is called once per frame
void Update () {
transform.LookAt(Target);
}
...But this code is nt working ? Any Idea..
http://www.youtube.com/watch?v=w-HWO$$anonymous$$Srkqw
just use a First Person Controller and make it into a 3rd person controller. Use that tutorial, or use a different one if it doesn't appease you.
$$anonymous$$ake sure that the variable is assigned attached to the Camera and the transform is assigned
Your answer
Follow this Question
Related Questions
null reference exception when setting cam target? 0 Answers
I cannot see button on camera preview 1 Answer
Resetting Camera with a key input 1 Answer
Rotate Camera to the object 0 Answers
Camera orbit around clicked position 0 Answers