- Home /
 
 
               Question by 
               LarryWells · Jun 03, 2016 at 06:14 AM · 
                camera-movementplayer movementcamera rotate  
              
 
              I'm a bit new but when my camera rotates with the player model to look around it kind of jitters
When I move around the camera follows fine but when I rotate using the WoW keys A and D the camera jitters and makes my player appear to jitter back and forth even though his positional values arent changing. here is what I wrote:
 using UnityEngine;
 using System.Collections;
 
 public class Cameras : MonoBehaviour {
     //LateUpdate runs after an update
     public Transform player = null;
     public Transform target = null;
     void LateUpdate () {
         // LookAt(Object.postion) forces the camera to look at that objecct in the scene
         this.transform.LookAt (player.position);
 
         //to make the camera follow a target then create a transform variable for it and set the camera position to it
         this.transform.position = target.position;
 
     }
 }
 
 
              
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
Problem in rotating camera around a moving player 1 Answer
Camera problem 2 Answers
Quaternion.Slerp in a semisphere 1 Answer
How do I make a camera add torque on two different axis? 0 Answers
camera script not working 1 Answer