function class.addVelocity(W,b)local H=typeof(b)if H~=W._currentType then parseError("\115\112\114\105\110\103\084\121\112\101\077\105\115\109\097\116\099\104",nil,H,W._currentType)end local O=unpackType(b,H)for b,H in ipairs(O)do W._springVelocities[b]+=H end SpringScheduler.add(W)end

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
