- Home /
 
 
               Question by 
               Razouille · Feb 04, 2014 at 02:55 PM · 
                camerarigidbody2dsmoothscrolling  
              
 
              Camera smooth jerky for only some objects
Hi everyone,
I got a problem with my camera which follow the player with a smooth movement :
 transform.position = Vector3.Lerp(position, new_position, delta * speed);
 
               When I put this code in the LateUpdate function, the background (simple sprites) is smooth but the Player is a little jerky, but if I put this code in the FixedUpdate function, the player is smooth but the background isnt. So I don't really know what to do... I need some help !
For information my player has 2 childs with rigidbody2D, one of them has a Spring Joint with the other which is the object followed by the camera.
               Comment
              
 
               
              Your answer