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
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
  GO can't fit end of the spline GameDeveloperek4123 3 14 03-04-2024, 11:06 AM
Last Post: _Aka_

Forum Jump: