function class.setPosition(k,a)local V=typeof(a)if V~=k._currentType then parseError("\115\112\114\105\110\103\084\121\112\101\077\105\115\109\097\116\099\104",nil,V,k._currentType)end k._springPositions=unpackType(a,V)k._currentValue=a SpringScheduler.add(k)Dependencies.updateAll(k)end
--[[
	Sets the position of the internal springs, meaning the value of this
	Spring will jump to the given value. This doesn't affect velocity.

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

	self._springPositions = unpackType(newValue, newType)
	self._currentValue = newValue
	SpringScheduler.add(self)
	Dependencies.updateAll(self)
end
