function class.addVelocity(H,F)local T=typeof(F)if T~=H._currentType then parseError("\115\112\114\105\110\103\084\121\112\101\077\105\115\109\097\116\099\104",nil,T,H._currentType)end local C=unpackType(F,T)for F,T in ipairs(C)do H._springVelocities[F]+=T end SpringScheduler.add(H)end
--[[
	Adds to the velocity of the internal springs, on top of the existing
	velocity of this Spring. This doesn't affect position.

	If the type doesn't match the current type of the spring, an error will be
	thrown.
]]
function class:addVelocity(deltaValue)
	local deltaType = typeof(deltaValue)
	if deltaType ~= self._currentType then
		parseError("springTypeMismatch", nil, deltaType, self._currentType)
	end

	local springDeltas = unpackType(deltaValue, deltaType)

	for index, delta in ipairs(springDeltas) do
		self._springVelocities[index] += delta
	end

	SpringScheduler.add(self)
end
