Hi i stopped using the function set tangent due to its large complicity. I have seen that spline tangent update automatically when user does not tries to set it, So i have let the spline tool itself set it to best possible shape instead of me setting the tangent. I now only update the location of spline component