function VRBaseCamera.GetVRFocus(g,s,N)local b=g.lastCameraFocus or s g.cameraTranslationConstraints=Vector3.new(g.cameraTranslationConstraints.x,math.min(1,g.cameraTranslationConstraints.y+N),g.cameraTranslationConstraints.z)local I=Vector3.new(0,g:GetCameraHeight(),0)local D=CFrame.new((Vector3.new(s.x,b.y,s.z)):lerp(s+I,g.cameraTranslationConstraints.y))return D 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
