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
  Disable a spline's gizmo when not selected or disabled. mikechr2000 1 97 02-03-2025, 09:34 AM
Last Post: _Aka_
Information Questions regarding spline colliders and collisions with rigidbodies Spyboticer 7 350 01-20-2025, 12:25 PM
Last Post: _Aka_
  Extrude mesh along spline. New and confused user GhostStalker 3 119 01-02-2025, 09:58 AM
Last Post: _Aka_
  Newly created spline is invisible quickytools 7 215 12-21-2024, 10:14 AM
Last Post: _Aka_

Forum Jump: