function VRBaseCamera.GetVRFocus(q,G,z)local u=q.lastCameraFocus or G q.cameraTranslationConstraints=Vector3.new(q.cameraTranslationConstraints.x,math.min(1,q.cameraTranslationConstraints.y+z),q.cameraTranslationConstraints.z)local t=Vector3.new(0,q:GetCameraHeight(),0)local P=CFrame.new((Vector3.new(G.x,u.y,G.z)):Lerp(G+t,q.cameraTranslationConstraints.y))return P end
-- defines subject and height of VR camera
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
