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
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
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
  Unity 6 issues Moonbo 4 1,152 11-21-2025, 12:07 PM
Last Post: _Aka_
  Morph game object along curve. mikechr2000 5 3,018 02-04-2025, 09:30 PM
Last Post: _Aka_
  Scaling a closed curve rickgplus 1 1,475 01-16-2025, 06:52 PM
Last Post: _Aka_
  Extrapolate past curve endpoint Madgvox 3 2,369 09-10-2024, 01:24 PM
Last Post: _Aka_

Forum Jump: