pixartist's picture

LookAt understanding

So, first of all, this is my first time dealing with 3d programming.
as far as I understand the Matrix4.LookAt() method parameters are
1. Camera position
2. Target position (camera will always be rotated so that it faces this point in space)
3. up?

So now shouldn't the camera always center on the same point, no matter what the first parameter is? I tried moving the camera along the x axis next to a polygon, but it looks like the polygon rotates around the camera. What did I get wrong ?