-- ================================================================================
-- VARIABLES
-- ================================================================================

local PI_HALF = math.pi * 0.5
local ATAN2 = math.atan2

local MAX_DEVICE_ROTATION = math.rad(60)

local UserInputService = game:GetService("UserInputService")
local initialGravity = Vector3.new()

local acceleromaterEnabled = UserInputService.AccelerometerEnabled