-- How many velocities we want to store in our velocity history. Each velocity is stored per frame.
-- Used to ensure we have a correct recent velocity.

local MAX_VELOCITY_HISTORY_COUNT = 5

local previousVelocities = {}

local function getAverageVelocity()
	local averageVelocity = Vector3.new()

	for _, v in pairs(previousVelocities) do
		averageVelocity = averageVelocity + v
	end

	averageVelocity = averageVelocity / #previousVelocities
	return averageVelocity
end

local counter = 1
