04-07-2022, 01:35 PM
Hi
The issue is that the graph's X value is not the TF value of a point, but its relative distance, meaning the distance at that point divided by the length of the spline. The documentation is not clear about this, my bad. Will fix that for the next update.
Also, your message made me realize that displaying the Relative Distance in the CP's inspector would be very helpful. To do so, please go to CurvySplineSegmentEditor.cs, and replace the statement at line 420 with the following:
Did this help?
Have a nice day
The issue is that the graph's X value is not the TF value of a point, but its relative distance, meaning the distance at that point divided by the length of the spline. The documentation is not clear about this, my bad. Will fix that for the next update.
Also, your message made me realize that displaying the Relative Distance in the CP's inspector would be very helpful. To do so, please go to CurvySplineSegmentEditor.cs, and replace the statement at line 420 with the following:
Code:
EditorGUILayout.HelpBox("Control Point TF: " + Target.TF.ToString() +
"\nControl Point Distance: " + Target.Distance.ToString() +
"\nControl Point Relative Distance: " + (Target.Distance / spline.Length).ToString() +
"\nSegment Length: " + Target.Length.ToString() +
"\nSegment Cache Points: " + Target.CacheSize.ToString() +
"\nSpline Length: " + spline.Length.ToString(), MessageType.Info);
Did this help?
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.