How to prevent Camera from Translating when rotating player

I have a camera script that follows my player, but whenever the player rotates the player’s transform.position values also change. This is causing my camera to translate slightly while the player rotates. What I want is my camera to follow my player without taking rotation into the equation. I have tried setting my rotation to 0 and then grabbing the player.transform.position values, but that does not work either.

Attached is the Camera Follow Script. Any help would be greatly appreciated

192625-sceneview.gif

Well setting the camera position to the RigidBody2D.worldCenterOfMass mostly solved the issue, but the little bit of camera translation is hardly noticeable while you’re moving. It is only if the car were to be stuck in place while spinning in which the camera movement would be noticeable. Glad I have solved it enough to fit my scenario. Thanks a bunch man, you’re help was invaluable!