04-16-2024, 11:47 PM
In file CurvySplineSegment.cs at line 1340, you will find this method:
public Vector3 GetTangent(float localF, Vector3 position, Space space = Space.Self)
In it, you will find this line
const float fIncrement = 0.01f;
Change the value to 0.001f, or even 0.0001f. You will get better results, but might see issues in small splines (around 1m length or less).
This is just a workaround. A real fix that I should implement is to set that value dynamically, depending on the length of the spline segment.
Did this fix the issue?
Have a nice day
public Vector3 GetTangent(float localF, Vector3 position, Space space = Space.Self)
In it, you will find this line
const float fIncrement = 0.01f;
Change the value to 0.001f, or even 0.0001f. You will get better results, but might see issues in small splines (around 1m length or less).
This is just a workaround. A real fix that I should implement is to set that value dynamically, depending on the length of the spline segment.
Did this fix the issue?
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.