function class.setVelocity(y,t)local S=typeof(t)if S~=y._currentType then parseError("\115\112\114\105\110\103\084\121\112\101\077\105\115\109\097\116\099\104",nil,S,y._currentType)end y._springVelocities=unpackType(t,S)SpringScheduler.add(y)end
--[[
	Sets the velocity of the internal springs, overwriting 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:setVelocity(newValue)
	local newType = typeof(newValue)
	if newType ~= self._currentType then
		parseError("springTypeMismatch", nil, newType, self._currentType)
	end

	self._springVelocities = unpackType(newValue, newType)
	SpringScheduler.add(self)
end
