Skip to main content
edited title
Link
Tetrad
  • 30.1k
  • 12
  • 96
  • 143

Why is my Unity-Camera camera chasing player script running slow?

Tweeted twitter.com/#!/StackGameDev/status/131918230460706816

So I have a camera class, that is suppose to chase my player, which works, but its really really slow. It only has this line of code, which makes sense to me, player moves, camera moves. Any idea? of why my game runs slower.

void Update()
    {  
   { transform.position= new Vector3(player.transform.position.x, player.transform.position.y, -10);
        }

So I have a camera class, that is suppose to chase my player, which works, but its really really slow. It only has this line of code, which makes sense to me, player moves, camera moves. Any idea?

void Update()
        { transform.position= new Vector3(player.transform.position.x, player.transform.position.y, -10);
        }

I have a camera class, that is suppose to chase my player, which works, but its really really slow. It only has this line of code, which makes sense to me, player moves, camera moves. Any idea of why my game runs slower.

void Update()
{  
    transform.position= new Vector3(player.transform.position.x, player.transform.position.y, -10);
}
Source Link
Johnny Quest
  • 284
  • 1
  • 4
  • 10

Unity-Camera chasing player

So I have a camera class, that is suppose to chase my player, which works, but its really really slow. It only has this line of code, which makes sense to me, player moves, camera moves. Any idea?

void Update()
        { transform.position= new Vector3(player.transform.position.x, player.transform.position.y, -10);
        }