function VRBaseCamera.GetVRFocus(x,n,P)local r=x.lastCameraFocus or n x.cameraTranslationConstraints=Vector3.new(x.cameraTranslationConstraints.x,math.min(1,x.cameraTranslationConstraints.y+P),x.cameraTranslationConstraints.z)local N=Vector3.new(0,x:GetCameraHeight(),0)local l=CFrame.new((Vector3.new(n.x,r.y,n.z)):lerp(n+N,x.cameraTranslationConstraints.y))return l end

function VRBaseCamera:GetVRFocus(subjectPosition, timeDelta)
	local lastFocus = self.lastCameraFocus or subjectPosition

	self.cameraTranslationConstraints = Vector3.new(
		self.cameraTranslationConstraints.x,
		math.min(1, self.cameraTranslationConstraints.y + timeDelta),
		self.cameraTranslationConstraints.z)

	local cameraHeightDelta = Vector3.new(0, self:GetCameraHeight(), 0)
	local newFocus = CFrame.new(Vector3.new(subjectPosition.x, lastFocus.y, subjectPosition.z):
			lerp(subjectPosition + cameraHeightDelta, self.cameraTranslationConstraints.y))

	return newFocus
end
