local CL = require("camera.CameraLibrary")
local orbitElevation
local playerCreature = game.Player.FindPlayer()
function OnScriptLoaded(level, camera)
  playerCreature = game.Player.FindPlayer()
end
function OnUpdate(level, camera)
  if playerCreature == nil then
    playerCreature = game.Player.FindPlayer()
  end
  orbitElevation = game.Camera.GetOrbitElevation()
  CL.CameraUpdateAttribute(camera, orbitElevation, -40, 0, "Distance", 2)
  CL.CameraUpdateAttribute(camera, orbitElevation, -10, 10, "X", 0.9)
  CL.CameraUpdateAttribute(camera, orbitElevation, -10, 10, "fov", 53.53)
  CL.CameraUpdateAttribute(camera, orbitElevation, 0, -40, "Y", 1.2)
  CL.CameraUpdateAttribute(camera, orbitElevation, -40, 0, "tilt", 0)
  CL.CameraUpdateAttribute(camera, orbitElevation, 10, 40, "tilt", -10)
  CL.CameraUpdateAttribute(camera, orbitElevation, 10, 40, "Y", 1.8)
end
function OnTeardown(level, camera)
end
function OnSaveCheckpoint(level)
end
function OnRestoreCheckpoint(level, go, tab)
end
