Why is the camera .5 studs away from the center of the head?

Hello, I am trying to create part that is always in the center of the camera (while a player is in first person). However, the distance and angle between the part and the camera varies depending its pitch, meaning the part isn’t always in the center. After tinkering with it for a while, I discovered that the camera always maintains a distance of .5 studs from the center of the head. Does anyone know why this is the case (and can confirm this as a known feature)? Why doesn’t the camera’s keep the same position as the head?

In the image below, the red parts are CFrames of the camera at particular pitches (the arrows are the direction that I was facing at the time):

1 Like

This code determines the minimum zoom distance.

		local zoom = self:GetCameraToSubjectDistance()
		if zoom < 0.5 then
			zoom = 0.5
		end

The actual camera update code is newCameraCFrame = CFrame.new(cameraFocusP - (zoom * newLookVector), cameraFocusP). As you can see, if zoom = 0 then newCameraCFrame position will be exactly equal to cameraFocusP which is essentially the head. However, zoom is limited to only 0.5; thus the camera is 0.5 studs away.

This is the answer to your question.

2 Likes

You could solve your issue, by creating your own custom camera script.