Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extrusion and scale curve issues
#2
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:

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.
Reply


Messages In This Thread
Extrusion and scale curve issues - by Sacryn - 04-07-2022, 09:50 AM
RE: Extrusion and scale curve issues - by _Aka_ - 04-07-2022, 01:35 PM
RE: Extrusion and scale curve issues - by Sacryn - 04-08-2022, 07:16 AM
RE: Extrusion and scale curve issues - by _Aka_ - 04-08-2022, 12:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 PM
Last Post: _Aka_
Bug Issues when working with in-place prefabs Sacryn 4 6 02-27-2024, 04:08 PM
Last Post: _Aka_
Question Generator Canvas workflow issues Sacryn 1 7 02-02-2024, 11:22 PM
Last Post: _Aka_

Forum Jump: