local function V(V)if V.Magnitude==0 then return Vector3.zero end return V.Unit end return function(K,s,P)do end local g=P.Bones[K.ParentIndex]if g then local P=K.FreeLength local o=s-g.Position local p=V(o)local I=o.Magnitude<P and o.Magnitude or P local y=g.Position+p*I do end return y end do end return end
local function SafeUnit(v3)
	if v3.Magnitude == 0 then
		return Vector3.zero
	end

	return v3.Unit
end

return function(self, Position, BoneTree)
do end	
local ParentBone = BoneTree.Bones[self.ParentIndex]

	if ParentBone then
		local RestLength = self.FreeLength
		local BoneSub = (Position - ParentBone.Position)
		local BoneDirection = SafeUnit(BoneSub)
		local BoneDistance = BoneSub.Magnitude < RestLength and BoneSub.Magnitude or RestLength

		local RestPosition = ParentBone.Position + (BoneDirection * BoneDistance)
do end		

return RestPosition
	end
do end	

return
end
