Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"MetaData" Of Entire Spline Heightmap
#1
Hey Aka hope you are well, 

I have a general question about the best practice in which to approach getting info on the entire spline if you dont mind.  

Let's say I wanted to plot a graph of the height profile of my spline. Since I'm guessing control points are basically just normal unity gameobjects, my solution would be to just find all the control points of my spline and extract all the y values of each control point and then I could plot them against their absolute positions on the graph's x axis. 

Just wanted to ask is the right way to think about this? I plan to take more general info from the spline and do stuff with it like a minimap or whatever. So unless this info is saved somewhere I cant think of another way. 

Cheers!
Reply
#2
Hi Samy, I am doing well thank you, I hope you too.

Getting the information only from the CPs would give you an incomplete picture, since it will not take into consideration the variations in between CPs. I suggest using the spline's cache points, it has more granular information.

Here are some useful methods:

https://api.curvyeditor.com/FluffyUnderw...ine_Space_

https://api.curvyeditor.com/FluffyUnderw...ine_Space_

I hope this helped.
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
#3
Solid pointers mate thank you - exactly the type of advice I was looking for.
Reply
#4
You are welcome.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Smile Constant speed along a spline? tfishell 1 205 11-13-2025, 11:32 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 3,363 07-29-2025, 09:15 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 7 4,815 07-13-2025, 07:11 PM
Last Post: _Aka_
  Is there a way to get the position of each ControlPoint in spline by API? Chanon 1 1,766 06-07-2025, 09:44 AM
Last Post: _Aka_

Forum Jump: