local D={}local Y=game.Workspace.CurrentCamera function D.TeleportTo(y,D,R)Y.CFrame=CFrame.new(D,D+R)Y.Focus=CFrame.new(D+R)end return D
---
---Utility functions for the Camera
---
---@class CameraUtil
---
local CameraUtil = {}

--------------------------------------------------
-- Types
-- ...

--------------------------------------------------
-- Dependencies
-- ...

--------------------------------------------------
-- Constants
-- ...

--------------------------------------------------
-- Members
local camera = game.Workspace.CurrentCamera

---
---Will transform the CurrentCamera's CFrame to the passed position, looking at the passed direction
---
function CameraUtil:TeleportTo(position, direction)
    camera.CFrame = CFrame.new(position, position + direction)
    camera.Focus = CFrame.new(position + direction)
end

return CameraUtil
