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
  Is there a way to get the position of each ControlPoint in spline by API? Chanon 1 145 06-07-2025, 09:44 AM
Last Post: _Aka_
  Filling a closed spline dynamically rickgplus 1 368 04-16-2025, 08:56 AM
Last Post: _Aka_
  Disable a spline's gizmo when not selected or disabled. mikechr2000 1 358 02-03-2025, 09:34 AM
Last Post: _Aka_
Information Questions regarding spline colliders and collisions with rigidbodies Spyboticer 7 1,349 01-20-2025, 12:25 PM
Last Post: _Aka_

Forum Jump: