Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Odd behavior when drawing spline
#11
I decided to resurrect this post as I was working on my game today... it triggered a thought and I thought I'd mention it from what you said earlier in this post several months ago:

"Your post highlighted to me the need to improve this part of Curvy Splines. I am planning to do so in the future."

So my idea - maybe it's only applicable to my scenario:

What if you added an option that when a spline is drawn in the scene, it could be added as a child to an object in the scene by default if no other object in the hierarchy is selected?
  • If the option isn't set, Curvy continues to work as it always has with the spline positioned 10 units from the camera.
  • If an object is selected in the hierarchy, it would be relative to that object.
  • If no object is selected in the hierarchy and the option is set, it would be relative to the specified "default" object.

I'm basically doing the 3rd option myself - I have an empty game object positioned in the scene (Position 0,0,0 but it could be anywhere) that I select in the hierarchy before drawing a spline.  I then place my control points in the scene, which creates the spline object as a child to the empty game object, and the control points as children to the spline.  The user might want to keep the parent object... or they could pull the created spline out of the empty parent container where it maintains it's relative scale.

Does that make any sense?  Just a possible idea, maybe it fits and maybe it doesn't.  Smile
Reply


Messages In This Thread
Odd behavior when drawing spline - by ricke - 11-24-2022, 05:53 AM
RE: Odd behavior when drawing spline - by _Aka_ - 11-24-2022, 09:00 AM
RE: Odd behavior when drawing spline - by ricke - 11-24-2022, 03:11 PM
RE: Odd behavior when drawing spline - by _Aka_ - 11-24-2022, 06:37 PM
RE: Odd behavior when drawing spline - by ricke - 11-25-2022, 01:54 AM
RE: Odd behavior when drawing spline - by _Aka_ - 11-25-2022, 09:14 AM
RE: Odd behavior when drawing spline - by _Aka_ - 11-25-2022, 08:56 AM
RE: Odd behavior when drawing spline - by _Aka_ - 11-25-2022, 09:13 AM
RE: Odd behavior when drawing spline - by ricke - 11-25-2022, 02:35 PM
RE: Odd behavior when drawing spline - by _Aka_ - 11-28-2022, 10:34 AM
RE: Odd behavior when drawing spline - by ricke - 05-14-2023, 04:22 AM
RE: Odd behavior when drawing spline - by _Aka_ - 05-15-2023, 12:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Smile Constant speed along a spline? tfishell 1 319 11-13-2025, 11:32 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 3,685 07-29-2025, 09:15 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 7 5,164 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,869 06-07-2025, 09:44 AM
Last Post: _Aka_

Forum Jump: